net.cnri.dobj
Class DOException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by net.cnri.dobj.DOException
All Implemented Interfaces:
java.io.Serializable

public class DOException
extends java.io.IOException

Exception used in most digital object components.

See Also:
Serialized Form

Field Summary
static int APPLICATION_ERROR
           
static int CRYPTO_ERROR
           
static int INTERNAL_ERROR
           
static int NETWORK_ERROR
           
static int NO_SUCH_ELEMENT_ERROR
           
static int NO_SUCH_OBJECT_ERROR
           
static int OBJECT_ALREADY_EXISTS
           
static int OPERATION_NOT_AVAILABLE
           
static int PERMISSION_DENIED_ERROR
           
static int PROTOCOL_ERROR
           
static int REPLICATION_ERROR
           
static int REPLICATION_ITEM_OUT_OF_DATE
           
static int REPOSITORY_AUTHENTICATION_ERROR
           
static int SERVER_ERROR
           
static int STORAGE_ERROR
           
static int UNABLE_TO_LOCATE_OBJECT_ERROR
           
 
Constructor Summary
DOException(int code, java.lang.String message)
           
DOException(int code, java.lang.String message, java.lang.Throwable t)
           
 
Method Summary
 int getErrorCode()
           
static java.lang.String getFriendlyMessageForException(java.lang.Exception e)
           
 java.lang.String getMessage()
           
static java.lang.String lookupCode(int errorCode)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REPOSITORY_AUTHENTICATION_ERROR

public static final int REPOSITORY_AUTHENTICATION_ERROR
See Also:
Constant Field Values

NETWORK_ERROR

public static final int NETWORK_ERROR
See Also:
Constant Field Values

PROTOCOL_ERROR

public static final int PROTOCOL_ERROR
See Also:
Constant Field Values

NO_SUCH_OBJECT_ERROR

public static final int NO_SUCH_OBJECT_ERROR
See Also:
Constant Field Values

UNABLE_TO_LOCATE_OBJECT_ERROR

public static final int UNABLE_TO_LOCATE_OBJECT_ERROR
See Also:
Constant Field Values

CRYPTO_ERROR

public static final int CRYPTO_ERROR
See Also:
Constant Field Values

PERMISSION_DENIED_ERROR

public static final int PERMISSION_DENIED_ERROR
See Also:
Constant Field Values

STORAGE_ERROR

public static final int STORAGE_ERROR
See Also:
Constant Field Values

OBJECT_ALREADY_EXISTS

public static final int OBJECT_ALREADY_EXISTS
See Also:
Constant Field Values

INTERNAL_ERROR

public static final int INTERNAL_ERROR
See Also:
Constant Field Values

OPERATION_NOT_AVAILABLE

public static final int OPERATION_NOT_AVAILABLE
See Also:
Constant Field Values

APPLICATION_ERROR

public static final int APPLICATION_ERROR
See Also:
Constant Field Values

REPLICATION_ERROR

public static final int REPLICATION_ERROR
See Also:
Constant Field Values

SERVER_ERROR

public static final int SERVER_ERROR
See Also:
Constant Field Values

NO_SUCH_ELEMENT_ERROR

public static final int NO_SUCH_ELEMENT_ERROR
See Also:
Constant Field Values

REPLICATION_ITEM_OUT_OF_DATE

public static final int REPLICATION_ITEM_OUT_OF_DATE
See Also:
Constant Field Values
Constructor Detail

DOException

public DOException(int code,
                   java.lang.String message)

DOException

public DOException(int code,
                   java.lang.String message,
                   java.lang.Throwable t)
Method Detail

toString

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

getMessage

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

getErrorCode

public int getErrorCode()

lookupCode

public static final java.lang.String lookupCode(int errorCode)

getFriendlyMessageForException

public static java.lang.String getFriendlyMessageForException(java.lang.Exception e)