#include <tException.h>
Public Member Functions | |
virtual | ~tGenericException () |
destructor | |
tGenericException (char const *description, char const *name=NULL) | |
constructor from description and name | |
Private Member Functions | |
virtual tString | DoGetName () const |
returns the name of the exception | |
virtual tString | DoGetDescription () const |
returns a detailed description | |
Private Attributes | |
tString | description_ |
exception description | |
tString | name_ |
exception name |
Definition at line 51 of file tException.h.
tGenericException::~tGenericException | ( | void | ) | [virtual] |
tGenericException::tGenericException | ( | char const * | description, | |
char const * | name = NULL | |||
) |
constructor from description and name
description | error description | |
name | error name |
Definition at line 129 of file tException.cpp.
00130 : description_(description), name_( name ? name : "Error" ) 00131 { 00132 }
tString tGenericException::DoGetName | ( | void | ) | const [private, virtual] |
returns the name of the exception
Implements tException.
Definition at line 144 of file tException.cpp.
References name_.
00145 { 00146 return name_; 00147 }
tString tGenericException::DoGetDescription | ( | void | ) | const [private, virtual] |
returns a detailed description
Reimplemented from tException.
Definition at line 159 of file tException.cpp.
References description_.
00160 { 00161 return description_; 00162 }
tString tGenericException::description_ [private] |
tString tGenericException::name_ [private] |