public final class LastError
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
LastError.SingletonHolder
Lazy-initialization singleton holder
|
Modifier | Constructor and Description |
---|---|
private |
LastError()
Creates a new LastError instance
|
Modifier and Type | Method and Description |
---|---|
int |
get()
Gets the errno set by the last C function invoked by the current thread.
|
int |
getError()
Deprecated.
|
static LastError |
getInstance()
Gets the singleton instance of the LastError object.
|
void |
set(int value)
Sets the system errno value.
|
private final Foreign foreign
public static final LastError getInstance()
@Deprecated public final int getError()
public final int get()
public final void set(int value)
value
- The value to set errno to.