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 (int error, const String &msg, const String &filename, uInt lineNumber, Category c=GENERAL) | |
~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.
Definition at line 435 of file Error.h.
casacore::SystemCallError::SystemCallError | ( | const String & | funcName, | |
int | error, | |||
Category | c = GENERAL | |||
) |
This constructs a "SystemCallError" from the system call function name and the errno.
casacore::SystemCallError::SystemCallError | ( | int | error, | |
const String & | msg, | |||
const String & | filename, | |||
uInt | lineNumber, | |||
Category | c = GENERAL | |||
) |
casacore::SystemCallError::~SystemCallError | ( | ) | throw () |
Destructor which does nothing.
int casacore::SystemCallError::error | ( | ) | const [inline] |
static String casacore::SystemCallError::errorMessage | ( | int | error | ) | [static] |
Get the message belonging to an error.
int casacore::SystemCallError::itsError [private] |