|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.jniwrapper.win32.LastError
This class provides status value of the last error and error messages associated with system errors.
| Field Summary | |
static int |
NO_ERROR
|
| Constructor Summary | |
LastError()
|
|
| Method Summary | |
static java.lang.String |
getMessage()
|
static java.lang.String |
getMessage(boolean clearStatus)
Returns system error message and clears it if the passed parameter is true. |
static java.lang.String |
getMessage(int errorCode)
Searches the system message-table resource(s) for the requested error code message. |
static int |
getValue()
Retrieves the last-error code value of the native thread. |
static int |
getValue(boolean clear)
Returns last error value, and clears it depending on the passed parameter. |
static void |
setValue(int value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int NO_ERROR
| Constructor Detail |
public LastError()
| Method Detail |
public static int getValue()
public static int getValue(boolean clear)
clear - if true sets last error status to zero,
otherwise the status is not unmodified.
public static void setValue(int value)
public static java.lang.String getMessage()
public static java.lang.String getMessage(boolean clearStatus)
clearStatus - if true the last errror status would be set to zero.
public static java.lang.String getMessage(int errorCode)
errorCode - System error code returned by getValue()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||