Open SiteSearch 4.1.1
Final

ORG.oclc.access.api
Class AuthoException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--ORG.oclc.access.api.AuthoException

public class AuthoException
extends Exception

The AuthoException class is used for throwing exceptions from the authorization process, indicating that this is an invalid authorization.

See Also:
Serialized Form

Field Summary
static int ACCESS_SRV_LOCKED
           
static int AUTHORIZATION_DENIED
           
static int AUTHORIZATION_EXISTS
           
static int INCORRECT_SIZE
           
static int NO_GROUPS_FOUND
           
static int SESSION_LIMIT_EXCEEDED
           
static int SUCCESS
           
static int TOO_MANY_GROUPS
           
static int UNKNOWN_ERROR
           
 
Constructor Summary
AuthoException()
          Constructs a new AuthoException object by setting the code to SUCCESS and the extraMsg to null.
AuthoException(int errcode)
          Constructs a new AuthoException object by setting the code to the input errcode and the extraMsg to null.
AuthoException(int errcode, String msg2)
          Constructs a new AuthoException object by setting the code and the message to the input parameter values.
 
Method Summary
 int getErrCode()
          Returns an int containing the error code of this exception.
 String getMessage()
          Returns a String containing the message of this exception.
 String toString()
          Returns a String containing the string representation of the object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SUCCESS

public static final int SUCCESS

UNKNOWN_ERROR

public static final int UNKNOWN_ERROR

AUTHORIZATION_DENIED

public static final int AUTHORIZATION_DENIED

SESSION_LIMIT_EXCEEDED

public static final int SESSION_LIMIT_EXCEEDED

TOO_MANY_GROUPS

public static final int TOO_MANY_GROUPS

AUTHORIZATION_EXISTS

public static final int AUTHORIZATION_EXISTS

INCORRECT_SIZE

public static final int INCORRECT_SIZE

NO_GROUPS_FOUND

public static final int NO_GROUPS_FOUND

ACCESS_SRV_LOCKED

public static final int ACCESS_SRV_LOCKED
Constructor Detail

AuthoException

public AuthoException()
Constructs a new AuthoException object by setting the code to SUCCESS and the extraMsg to null.

AuthoException

public AuthoException(int errcode)
Constructs a new AuthoException object by setting the code to the input errcode and the extraMsg to null.
Parameters:
errcode - the error code.

AuthoException

public AuthoException(int errcode,
                      String msg2)
Constructs a new AuthoException object by setting the code and the message to the input parameter values.
Parameters:
errcode - the error code.
msg2 - the error message.
Method Detail

getErrCode

public int getErrCode()
Returns an int containing the error code of this exception.
Returns:
the errcode

getMessage

public String getMessage()
Returns a String containing the message of this exception.
Returns:
the message corresponding to the errcode.
Overrides:
getMessage in class Throwable

toString

public String toString()
Returns a String containing the string representation of the object.
Returns:
the string representation.
Overrides:
toString in class Throwable

Open SiteSearch 4.1.1
Final