#include <error.hpp>

Public Member Functions | |
| Error (void) | |
| Constructor. | |
| virtual | ~Error (void) throw () |
| Error (const Error &aError) | |
| Copy constructor. | |
| template<typename T> | |
| std::ostream & | operator<< (const T &t) |
| std::ostream & | operator<< (std::ostream &(*__pf)(std::ostream &)) |
| virtual const char * | what (void) const throw () |
| Returns error message (not thread-safe). | |
Protected Attributes | |
| std::ostringstream | msgStream |
| String containing the error message. | |
Static Protected Attributes | |
| static std::string | message |
void test( int i ) throw (Error) { ERRORMACRO( i > 0, Error, , "Parameter for method test must be greater than zero (but " "was " << i << ")." ); } int main(void) { try { test( -5 ); } catch ( Error &e ) { cerr << e.what() << endl; }; return 0; }
_e. Make sure, that you don't use this variable-name in any of the macro-arguments! Definition at line 54 of file error.hpp.
| virtual Error::~Error | ( | void | ) | throw () [inline, virtual] |
| Error::Error | ( | const Error & | aError | ) |
| std::ostream& Error::operator<< | ( | const T & | t | ) | [inline] |
| std::ostream& Error::operator<< | ( | std::ostream &(*)(std::ostream &) | __pf | ) | [inline] |
| const char * Error::what | ( | void | ) | const throw () [virtual] |
std::ostringstream Error::msgStream [protected] |
String containing the error message.
Definition at line 75 of file error.hpp.
Referenced by Error(), operator<<(), and what().
string Error::message [static, protected] |
Temporary string to do null-termination. The method what() requires a null-terminated string.
Reimplemented in XSLParseError.
Definition at line 78 of file error.hpp.
Referenced by what().