tGenericException Class Reference

Simple, generic exception class for locally fatal errors (that abort a function,. More...

#include <tException.h>

Inheritance diagram for tGenericException:

Inheritance graph
[legend]
Collaboration diagram for tGenericException:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

Simple, generic exception class for locally fatal errors (that abort a function,.

Definition at line 51 of file tException.h.


Constructor & Destructor Documentation

tGenericException::~tGenericException ( void   )  [virtual]

destructor

Definition at line 114 of file tException.cpp.

00115 {
00116 }

tGenericException::tGenericException ( char const *  description,
char const *  name = NULL 
)

constructor from description and name

Parameters:
description error description
name error name

Definition at line 129 of file tException.cpp.

00130         : description_(description), name_( name ? name : "Error" )
00131 {
00132 }


Member Function Documentation

tString tGenericException::DoGetName ( void   )  const [private, virtual]

returns the name of the exception

Returns:
the name

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

Returns:
the description

Reimplemented from tException.

Definition at line 159 of file tException.cpp.

References description_.

00160 {
00161     return description_;
00162 }


Member Data Documentation

tString tGenericException::description_ [private]

exception description

Definition at line 60 of file tException.h.

Referenced by DoGetDescription().

tString tGenericException::name_ [private]

exception name

Definition at line 61 of file tException.h.

Referenced by DoGetName().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:56:40 2008 for Armagetron Advanced by  doxygen 1.5.4