casacore::SystemCallError Class Reference

Exception for an error in a system call. More...

#include <Error.h>

Inheritance diagram for casacore::SystemCallError:
casacore::AipsError

List of all members.

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

Detailed Description

Exception for an error in a system call.

Intended use:

Public interface

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Synopsis

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

int casacore::SystemCallError::error (  )  const [inline]

Get the errno.

Definition at line 449 of file Error.h.

static String casacore::SystemCallError::errorMessage ( int  error  )  [static]

Get the message belonging to an error.


Member Data Documentation

Definition at line 456 of file Error.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1