#include <exceptions.h>
Inheritance diagram for Exception
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 |
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).