树
0.1
数据结构_第6章
|
#include <TreeException.hh>
Public Member Functions | |
TreeException (const std::string &text="undefined exception", const std::string &id="undefined", const std::string &td="Generic ArgException") | |
virtual | ~TreeException () noexcept |
std::string | error () const |
std::string | argId () const |
const char * | what () const noexcept |
std::string | typeDescription () const |
Private Attributes | |
std::string | _errorText |
std::string | _argId |
std::string | _typeDescription |
A simple class that defines and Tree exception. Should be caught whenever a Tree is created and used.
Definition at line 40 of file TreeException.hh.
|
inline |
Constructor.
text | - The text of the exception. |
id | - The text identifying the argument source. |
td | - Text describing the type of ArgException it is. of the exception. |
Definition at line 62 of file TreeException.hh.
|
inlinevirtualnoexcept |
Destructor.
Definition at line 73 of file TreeException.hh.
|
inline |
Returns the argument id.
Definition at line 83 of file TreeException.hh.
|
inline |
Returns the error text.
Definition at line 78 of file TreeException.hh.
|
inline |
Returns the type of the exception. Used to explain and distinguish between different child exceptions.
Definition at line 105 of file TreeException.hh.
|
inlinenoexcept |
Returns the arg id and error text.
Definition at line 94 of file TreeException.hh.
|
private |
The argument related to this exception.
Definition at line 116 of file TreeException.hh.
|
private |
The text of the exception message.
Definition at line 111 of file TreeException.hh.
|
private |
Describes the type of the exception. Used to distinguish between different child exceptions.
Definition at line 122 of file TreeException.hh.