casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Attributes
casa::SystemCallError Class Reference

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

#include <Error.h>

Inheritance diagram for casa::SystemCallError:
casa::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 () 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 377 of file Error.h.


Constructor & Destructor Documentation

casa::SystemCallError::SystemCallError ( const String funcName,
int  error,
Category  c = GENERAL 
)

This constructs a "SystemCallError" from the system call function name and the errno.

Destructor which does nothing.


Member Function Documentation

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

Get the errno.

Definition at line 388 of file Error.h.

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

Get the message belonging to an error.


Member Data Documentation

Definition at line 395 of file Error.h.


The documentation for this class was generated from the following file: