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

Cabal::Error Class Reference
[Errors]

Generic error class This is meant to be overloaded by specific error classes below. More...

#include <cabal_error.h>

Inheritance diagram for Cabal::Error:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Error (const std::string &desc, int code=0)
 Create the error.

int osCode () const
 Return a numeric OS-dependant code.

const std::string & description () const
 Returns a descriptive string about what the error is.

virtual const std::string className () const
 Returns the name of the class.


Friends

std::ostream & operator<< (std::ostream &stream, Error &err)
 Serializes the error.


Detailed Description

Generic error class This is meant to be overloaded by specific error classes below.

Definition at line 44 of file cabal_error.h.


Constructor & Destructor Documentation

Cabal::Error::Error const std::string &  desc,
int  code = 0
[inline]
 

Create the error.

Parameters:
code OS dependant code (if available)

Definition at line 55 of file cabal_error.h.


Member Function Documentation

int Cabal::Error::osCode  )  const [inline]
 

Return a numeric OS-dependant code.

This can be useful for debugging application running in a given environment

Definition at line 65 of file cabal_error.h.


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  stream,
Error err
[friend]
 

Serializes the error.

Use this operator to display what kind of error has happened

Definition at line 30 of file ltlib/cabal_error.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Apr 10 17:41:49 2004 for Cabal by doxygen 1.3.5