Exception class. More...
#include <decException.h>
Public Member Functions | |
Constructors | |
| duException (const char *name, const char *description, const char *info, const char *file, int line) | |
| Creates a new exception object. | |
Accessors | |
| const char * | GetName () const |
| const char * | GetDescription () const |
| const char * | GetInfo () const |
| const char * | GetFile () const |
| int | GetLine () const |
Tests | |
| bool | IsNamed (const char *name) const |
| Tests if the exception has the given name. | |
Display Functions | |
| void | PrintError () |
| Displays a formated output of the stored informations. | |
Exception class.
| duException::duException | ( | const char * | name, |
| const char * | description, | ||
| const char * | info, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Creates a new exception object.
| name | Unique name to identify the exception |
| description | Description of the reason for the exception |
| info | Additional informations helpfull to track the reason for the exception |
| file | Name of the source file where the exception occured |
| line | Line number in 'file' where the exception occured |
| const char* duException::GetDescription | ( | ) | const [inline] |
| const char* duException::GetFile | ( | ) | const [inline] |
| const char* duException::GetInfo | ( | ) | const [inline] |
| int duException::GetLine | ( | ) | const [inline] |
| const char* duException::GetName | ( | ) | const [inline] |
| bool duException::IsNamed | ( | const char * | name ) | const |
Tests if the exception has the given name.
| void duException::PrintError | ( | ) |
Displays a formated output of the stored informations.
1.7.2