public final class DOFMarshalException
extends org.opendof.core.internal.protocol.DPSException
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 |
---|
DOFMarshalException(java.lang.String message,
java.lang.Throwable cause)
Construct a DOFMarshalException using an error message and a cause (code is set to FAILED).
|
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()
Returns 'DOFMarshalException: message'.
|
create, getErrorCode, getMessage, getProviderInfo, marshal
public DOFMarshalException(java.lang.String message, java.lang.Throwable cause)
message
- The error message for this exception (see DOFException.getMessage()
)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.