|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--com.jniwrapper.win32.LastErrorException
Exception that holds last error code taken when an instance is created.
LastError
,
Serialized FormConstructor Summary | |
LastErrorException()
Constructs and new instance storing last error code and setting system error message. |
|
LastErrorException(java.lang.String message)
Constructs a new instance with the passed details message. |
|
LastErrorException(java.lang.String message,
boolean clearError)
Constructs a new instance with the passed details message. |
|
LastErrorException(java.lang.Throwable cause)
Constructs a new instance with the cause. |
Method Summary | |
int |
getErrorCode()
|
java.lang.String |
getErrorMessage()
|
java.lang.String |
getMessage()
Returns a combined message consisting of the details message passed on the construction and system error message that corresponds to the stored error code. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LastErrorException()
getErrorCode()
method.
public LastErrorException(java.lang.String message)
getErrorCode()
method.
System error message for the stored error code should be retrieved
by the getErrorMessage()
method.
message
- the details message.public LastErrorException(java.lang.String message, boolean clearError)
getErrorCode()
method.
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(java.lang.Throwable cause)
getErrorCode()
method.
cause
- the cause saved for later retrieval.Method Detail |
public int getErrorCode()
public java.lang.String getErrorMessage()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |