|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.win32.LastError
public class LastError
This class provides a status value of the last error and error messages associated with the system errors.
Field Summary | |
---|---|
static int |
ERROR_SUCCESS
|
static int |
NO_ERROR
|
Constructor Summary | |
---|---|
LastError()
|
Method Summary | |
---|---|
static void |
clearLastErrorCode()
Clears the last error value. |
static java.lang.String |
getMessage()
Deprecated. Use the getMessage(long) function instead. |
static java.lang.String |
getMessage(boolean clearStatus)
Deprecated. Use the getMessage(long) function instead. |
static java.lang.String |
getMessage(long errorCode)
Searches the system message-table resource(s) for the requested error code message. |
static int |
getValue()
Deprecated. To retrieve the last error code, use the function invocation result instead. This function does not guarantee that the result value is always correct. |
static int |
getValue(boolean clear)
Deprecated. To retrieve the last error code, use the result value of the function invocation instead. This function does not guarantee that the result value is correct. To clear the last error value, use the clearLastErrorCode() method. |
static void |
setValue(int value)
Sets the last error code. |
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
public static final int ERROR_SUCCESS
Constructor Detail |
---|
public LastError()
Method Detail |
---|
public static int getValue()
public static int getValue(boolean clear)
clearLastErrorCode()
method.
clear
- if true, sets the last error status to zero; otherwise the
status is not unmodified.
public static void clearLastErrorCode()
public static void setValue(int value)
value
- the value to set as last error code.public static java.lang.String getMessage()
getMessage(long)
function instead.
public static java.lang.String getMessage(boolean clearStatus)
getMessage(long)
function instead.
clearStatus
- if true
, the last errror status is set to
zero.
public static java.lang.String getMessage(long errorCode)
errorCode
- system error code returned by the function.invoke method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |