|
||||||||||
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
public class LastErrorException
This is an exception that holds the last error code taken when an instance is created.
LastError
,
Serialized FormConstructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
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()
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.Method Detail |
---|
public long 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 |