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

Exception Class Reference

Base exception class. More...

#include <exceptions.h>

Inheritance diagram for Exception

Inheritance graph
[legend]
List of all members.

Public Methods

 Exception (void)
 generic constructor.

 Exception (const char *origin, const char *type, const char *details, const char *file, int line)
 Constructor for custom setting of the fields. Usually called in the initializer list of derived classes.

const char* Type (void) const
 Every error of given type has a particular.

const char* Origin (void) const
 These strings should be set on a per construction basis. The constructors of derived exception classes need to set them: ppSomeException::ppSomeException (const char *Org, const char *Det);.

const char* Details (void) const
const char* File (void) const
int Line (void) const

Detailed Description

Base exception class.

Later we might feel the need to make this thing a bit cleverer. Update: I tried to improve it - hope this is fine (update from creinig)

FIX we should perhaps have a "operator<<(ostream &)" function or the like but the corporate will has not yet decided how we handle this. (i.e. we haven't decided between iostream or stdio).


The documentation for this class was generated from the following file:
Generated at Mon Nov 27 01:46:51 2000 for LibPenguinPlay by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000