Rudiments
|
Static Public Member Functions | |
static void | clearError () |
static void | setErrorNumber (int32_t err) |
static int32_t | getErrorNumber () |
static char * | getErrorString () |
static void | clearNativeError () |
static void | setNativeErrorNumber (int32_t err) |
static int32_t | getNativeErrorNumber () |
static char * | getNativeErrorString () |
The error class provides access to system errors.
|
static |
Set the current posix system error to 0, "Success".
|
static |
Set the current native error to 0, "Success". For systems (like Windows) that have their own native error number system, distinct from posix, this method sets that error number. For systems where the posix system error is the native error, this method has the same effect as clearError().
|
static |
Returns the current posix system error. Will match one of the posix system errors such as EINTR, ENOMEM, etc.
|
static |
Returns a string representation of the current posix system error. Note that the return value is allocated internally and returned, and must be freed by the calling program.
|
static |
Returns the current native error number. For systems (like Windows) that have their own native error number system, distinct from posix, this method returns that error number. For systems where the posix system error is the native error, this method returns the same error as getErrorNumber().
|
static |
Returns a string representatation of the current native system error as returned by getNativeErrorNumber(). Note that the return value is allocated internally and returned, and must be freed by the calling program.
|
static |
Set the current posix system error to "err". "err" should be one of the posix system errors such as EINTR, ENOMEM, etc.
|
static |
Set the current native system error to "err". For systems (like Windows) that have their own native error number system, distinct from posix, this method sets that error number. For systems where the posix system error is the native error, this method has the same effect as setError().