Rudiments
Static Public Member Functions
error Class Reference

List of all members.

Static Public Member Functions

static void clearError ()
static void setErrorNumber (int32_t err)
static int32_t getErrorNumber ()
static const char * getErrorString ()

Detailed Description

The error class provides an interface to the errors that system calls can generate.


Member Function Documentation

static void error::clearError ( )
static

Set the current system call error to 0, "Success".

static int32_t error::getErrorNumber ( )
static

Returns the current system call error. Will match one of the errors defined in error.h such as EINTR, ENOMEM, etc.

static const char* error::getErrorString ( )
static

Returns a string representation of the current system error. Note: this method returns a pointer to an internal buffer which may be overwritten at any time.

static void error::setErrorNumber ( int32_t  err)
static

Set the current system call error to "err". "err" should be one of the errors defined in error.h such as EINTR, ENOMEM, etc.