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 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 char* error::getErrorString ( ) [static]

Returns a string representation of the current system error. Note that the return value is allocated internally and returned, and must be freed by the calling program.

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.