public class LastError
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_SUCCESS |
static int |
NO_ERROR |
Constructor and Description |
---|
LastError() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int NO_ERROR
public static final int ERROR_SUCCESS
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.