public class LastErrorException
extends java.lang.RuntimeException
LastError
,
Serialized FormConstructor and Description |
---|
LastErrorException()
Deprecated.
Use the
LastErrorException(long) instead. |
LastErrorException(long errorCode)
Constructs a new instance storing the last error code and setting the system
error message.
|
LastErrorException(long errorCode,
java.lang.String message)
Constructs a new instance with the passed details message.
|
LastErrorException(long errorCode,
java.lang.String message,
boolean clearError)
Constructs a new instance with the passed details message.
|
LastErrorException(long errorCode,
java.lang.Throwable cause)
Constructs a new instance with the cause.
|
LastErrorException(java.lang.String message)
Deprecated.
Use the
LastErrorException(long, String) instead. |
LastErrorException(java.lang.String message,
boolean clearError)
Deprecated.
Use the
LastErrorException(long, String, boolean) instead. |
LastErrorException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new instance with the cause.
|
LastErrorException(java.lang.Throwable cause)
Deprecated.
Use the
LastErrorException(long, Throwable) instead. |
Modifier and Type | Method and Description |
---|---|
long |
getErrorCode() |
java.lang.String |
getErrorMessage() |
java.lang.String |
getMessage()
Returns a combined message consisting of the details message passed on
the construction and the system error message that corresponds to the stored
error code.
|
public LastErrorException()
LastErrorException(long)
instead.getErrorCode()
method.public LastErrorException(long errorCode)
getErrorCode()
method.errorCode
- specifies the last error code.public LastErrorException(java.lang.String message)
LastErrorException(long, String)
instead.getErrorCode()
method. Th system error message for the stored error code
should be retrieved by the getErrorMessage()
method.message
- the details message.public LastErrorException(long errorCode, java.lang.String message)
getErrorCode()
method. The system error message for the stored error code
should be retrieved by the getErrorMessage()
method.errorCode
- specifies the last error code.message
- the details message.public LastErrorException(java.lang.String message, boolean clearError)
LastErrorException(long, String, boolean)
instead.getErrorCode()
method. The system error message for the stored error code
should be retrieved by the getErrorMessage()
method. This
constructor clears the system error code depending on the value of the
clearError
parameter.message
- the detailed message.clearError
- if true
, the error code is cleared.public LastErrorException(long errorCode, java.lang.String message, boolean clearError)
getErrorCode()
method. The system error message for the stored error code
should be retrieved by the getErrorMessage()
method. This
constructor clears the system error code depending on the value of the
clearError
parameter.errorCode
- specifies the last error code.message
- the detailed message.clearError
- if true
, the error code is cleared.public LastErrorException(java.lang.Throwable cause)
LastErrorException(long, Throwable)
instead.getErrorCode()
method.cause
- the cause saved for later retrieval.public LastErrorException(long errorCode, java.lang.Throwable cause)
getErrorCode()
method.errorCode
- specifies the last error code.cause
- the cause saved for later retrieval.public LastErrorException(java.lang.String message, java.lang.Throwable cause)
getErrorCode()
method.message
- the detailed message.cause
- the cause saved for later retrieval.public long getErrorCode()
public java.lang.String getErrorMessage()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable