Open SiteSearch 4.1.1
Final

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

Field Summary
static int AMBIGUOUS_AUTHO
           
static int MALFORMED_DOMAIN_NAME
           
static int MALFORMED_IP
           
static int MISSING_AUTHO_COL
           
static int MISSING_AUTHO_TABLE
           
static int MISSING_PWD_COL
           
static int NO_METADATA
           
static int SUCCESS
           
static int UNKNOWN_ERROR
           
 
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.
 
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

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
Constructor Detail

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