ORG.oclc.access.api
Class AccessException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--ORG.oclc.access.api.AccessException
- public class AccessException
- extends Exception
The AccessException class is used for throwing exceptions from
the authorization process.
- See Also:
- Serialized Form
|
Constructor Summary |
AccessException()
Constructs a new AccessException object by setting the code to SUCCESS
and the extraMsg to null. |
AccessException(int errcode)
Constructs a new AccessException object by setting the code to
the input errcode
and the extraMsg to null. |
AccessException(int errcode,
String msg2)
Constructs a new AccessException 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
AMBIGUOUS_AUTHO
public static final int AMBIGUOUS_AUTHO
MALFORMED_IP
public static final int MALFORMED_IP
MALFORMED_DOMAIN_NAME
public static final int MALFORMED_DOMAIN_NAME
MISSING_AUTHO_TABLE
public static final int MISSING_AUTHO_TABLE
MISSING_AUTHO_COL
public static final int MISSING_AUTHO_COL
MISSING_PWD_COL
public static final int MISSING_PWD_COL
NO_METADATA
public static final int NO_METADATA
AccessException
public AccessException()
- Constructs a new AccessException object by setting the code to SUCCESS
and the extraMsg to null.
AccessException
public AccessException(int errcode)
- Constructs a new AccessException object by setting the code to
the input errcode
and the extraMsg to null.
- Parameters:
errcode - the error code.
AccessException
public AccessException(int errcode,
String msg2)
- Constructs a new AccessException 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