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
|
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. |
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
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.
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