casa
$Rev:20696$
|
Exception for an error in a system call. More...
#include <Error.h>
Public Member Functions | |
SystemCallError (const String &funcName, int error, Category c=GENERAL) | |
This constructs a "SystemCallError" from the system call function name and the errno. | |
~SystemCallError () throw () | |
Destructor which does nothing. | |
int | error () const |
Get the errno. | |
Static Public Member Functions | |
static String | errorMessage (int error) |
Get the message belonging to an error. | |
Private Attributes | |
int | itsError |
Exception for an error in a system call.
Public interface
This error is to be used for if a system call returns an error. It uses strerror to get the system error message.
casa::SystemCallError::SystemCallError | ( | const String & | funcName, |
int | error, | ||
Category | c = GENERAL |
||
) |
This constructs a "SystemCallError" from the system call function name and the errno.
casa::SystemCallError::~SystemCallError | ( | ) | throw () |
Destructor which does nothing.
int casa::SystemCallError::error | ( | ) | const [inline] |
static String casa::SystemCallError::errorMessage | ( | int | error | ) | [static] |
Get the message belonging to an error.
int casa::SystemCallError::itsError [private] |