Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Dv::Util::SystemError Class Reference

Exception class associated with a system error. More...

#include <systemerror.h>

List of all members.

Public Member Functions

 SystemError (int error_code=0)
int err_no () const

Static Public Attributes

const std::string NAME
 Name of class, is prepended to each message argument of the constructor.

Private Attributes

int errno_


Detailed Description

Exception class associated with a system error.

Derived from runtime_error.

Definition at line 16 of file systemerror.h.


Constructor & Destructor Documentation

Dv::Util::SystemError::SystemError int  error_code = 0  ) 
 

Parameters:
error_code system error code, should be valid input for strerror. If 0, the global :errno will be used instead.


Member Function Documentation

int Dv::Util::SystemError::err_no  )  const [inline]
 

Returns:
error code of this SystemError
Warning:
This function is not called errno() because <string.h> defines errno as a macro.
Definition at line 33 of file systemerror.h.

References errno_.


Member Data Documentation

const std::string Dv::Util::SystemError::NAME [static]
 

Name of class, is prepended to each message argument of the constructor.

Definition at line 22 of file systemerror.h.

int Dv::Util::SystemError::errno_ [private]
 

Definition at line 35 of file systemerror.h.

Referenced by err_no().


The documentation for this class was generated from the following file:
dvutil-0.13.15 [30 December, 2004]