public class DOFSecurityException extends DOFErrorException
Modifier and Type | Field and Description |
---|---|
static int |
ACCESS_DENIED
The initiator does not have the required permissions.
|
static int |
AUTHENTICATION_FAILED
Authentication failed.
|
static int |
INTERNAL
An internal error occurred.
|
static int |
UNKNOWN_DOMAIN
The domain is unknown to the AS.
|
ACK_TIMEOUT, APPLICATION_ERROR, DUPLICATE, INSUFFICIENT_RESOURCES, IO_FAILED, NOT_FOUND, NOT_READABLE, NOT_SUPPORTED, NOT_WRITABLE, PROTOCOL_NEGOTIATION_FAILED, REJECTED, RESULT_LOST, TERMINATED, TIMEOUT, TOO_MANY, TRANSPORT_FAILED, TYPE_MISMATCH
FAILED
Constructor and Description |
---|
DOFSecurityException()
Construct a DOFSecurityException with error code
INTERNAL . |
DOFSecurityException(java.lang.String message)
Construct a DOFSecurityException with error code
INTERNAL and containing an error message; |
DOFSecurityException(java.lang.String message,
java.lang.Throwable cause)
Construct a DOFSecurityException with error code
INTERNAL and containing an error message and a cause. |
DOFSecurityException(java.lang.Throwable cause)
Construct a DOFSecurityException with error code
INTERNAL and containing a cause. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorCodeString(int errorCode)
Get a String representation of an error code.
|
static java.lang.String |
getMessage(java.lang.Exception e)
Get the error message of the specified exception.
|
java.lang.String |
toString()
Return 'DOFSecurityException: message'.
|
create, getErrorCode, getMessage, getProviderInfo, marshal
public static final int ACCESS_DENIED
public static final int AUTHENTICATION_FAILED
public static final int UNKNOWN_DOMAIN
public static final int INTERNAL
public DOFSecurityException()
INTERNAL
.public DOFSecurityException(java.lang.String message)
INTERNAL
and containing an error message;message
- The error message for this exception (see DOFException.getMessage()
)public DOFSecurityException(java.lang.String message, java.lang.Throwable cause)
INTERNAL
and containing an error message and a cause.message
- The error message for this exception (see DOFException.getMessage()
)cause
- The original cause of the exception.public DOFSecurityException(java.lang.Throwable cause)
INTERNAL
and containing a cause.cause
- The original cause of the exception.public java.lang.String getErrorCodeString(int errorCode)
DOFException
getErrorCodeString
in class DOFErrorException
errorCode
- The error code to convert to a String.public java.lang.String toString()
toString
in class DOFErrorException
public static java.lang.String getMessage(java.lang.Exception e)
e
- The exception.