Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

Wefts::Error Class Reference
[Errors]

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

#include <wefts_error.h>

Inheritance diagram for Wefts::Error:

Inheritance graph
[legend]
List of all members.

Public Methods

 Error (int code=0)
 Create the error.

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

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


Private Attributes

int m_osCode

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 classe below.


Constructor & Destructor Documentation

Wefts::Error::Error int    code = 0 [inline]
 

Create the error.

Parameters:
code  OS dependant code (if available)


Member Function Documentation

virtual const std::string Wefts::Error::description   [inline, virtual]
 

Returns a descriptive string about what the error is.

int Wefts::Error::osCode   const [inline]
 

Return a numeric OS-dependant code.

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


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


Member Data Documentation

int Wefts::Error::m_osCode [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 18 05:53:45 2003 for Wefts by doxygen1.2.18