com.gestalt.scribe
Class ServerConnectionException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.gestalt.scribe.ServerConnectionException
All Implemented Interfaces:
java.io.Serializable

public class ServerConnectionException
extends java.lang.Exception

ServerConnectionException is thrown if the Connector cannot establish the connection with the Scribe server due to connectivity problems or failed login validation.

See Also:
Serialized Form

Constructor Summary
ServerConnectionException(java.lang.String message, int reasonCode)
          Returns ServerConnectionException object.
 
Method Summary
 int getReasonCode()
          Returns the reason code for the exception.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerConnectionException

public ServerConnectionException(java.lang.String message,
                                 int reasonCode)
Returns ServerConnectionException object.

Parameters:
message - text message of the exception
reasonCode - exception reason code. The reason codes are defined in Constants interface as follows:
 
 
Reason code Description
REMOTE_EXCEPTION the server could not be contacted
SERVER_NOT_BOUND the server did not register itself properly in RMI Registry after starting
BAD_URL the provided URL for the server is either invalid, or could not be parsed
NO_SUCH_USER user login ID is not found in Scribe user table
BAD_PASSWORD invalid user login password
NO_MORE_CONNECTS the limit on licensed connection has been reached
Method Detail

getReasonCode

public int getReasonCode()
Returns the reason code for the exception.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable