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

SystemError Class Reference

#include <Error.h>

Inheritance diagram for SystemError:

Error IOError List of all members.

Public Member Functions

 SystemError (const char *txt="unknown", int errnbr=-1)
 SystemError (const string &txt, int errnbr=-1)
 SystemError (const char *txt, int errnbr, const char *file, const char *function, int line)
 SystemError (const string &txt, int errnbr, const char *file, const char *function, int line)
virtual void print ()

Public Attributes

int _errno

Detailed Description

Author:
Thomas Gschwind

Bug:
Documentation is missing.

Definition at line 75 of file Error.h.


Constructor & Destructor Documentation

SystemError::SystemError const char *  txt = "unknown",
int  errnbr = -1
[inline]
 

Definition at line 78 of file Error.h.

References _errno.

00079         :Error(txt), _errno(errnbr) {
00080         } SystemError(const string & txt, int errnbr = -1)

SystemError::SystemError const string &  txt,
int  errnbr = -1
[inline]
 

Definition at line 80 of file Error.h.

00081         :Error(txt), _errno(errnbr) {
00082         }

SystemError::SystemError const char *  txt,
int  errnbr,
const char *  file,
const char *  function,
int  line
[inline]
 

Definition at line 83 of file Error.h.

References _errno.

00085         :Error(txt, file, function, line), _errno(errnbr) {
00086         }

SystemError::SystemError const string &  txt,
int  errnbr,
const char *  file,
const char *  function,
int  line
[inline]
 

Definition at line 87 of file Error.h.

References _errno.

00089         :Error(txt, file, function, line), _errno(errnbr) {
00090         }


Member Function Documentation

virtual void SystemError::print void   )  [inline, virtual]
 

Reimplemented from Error.

Reimplemented in IOError.

Definition at line 92 of file Error.h.

References _errno, and slog.

00092                              {
00093                 slog << "Exception!"
00094                     << " Type: System"
00095                     << " File: " << _file
00096                     << " Function: " << _function
00097                     << " Line: " << _line
00098                     << " Desc: " << _errtext
00099                     << " ErrStr(" << _errno << "): " << strerror(_errno) <<
00100                     "\n";
00101         }


Member Data Documentation

int SystemError::_errno
 

Definition at line 77 of file Error.h.

Referenced by print(), and SystemError().


The documentation for this class was generated from the following file:
Generated on Sun Oct 24 21:08:25 2004 for NewsCache by doxygen 1.3.6-20040222