A class that automatically logs the exception message. More...
#include <LoggedException.h>
Public Member Functions | |
| virtual int | code () const throw () |
| It gets the exception code. | |
| virtual const char * | getClassName () const throw () |
| It return the exception class name. | |
| LoggedException (const char *const what) throw () | |
| It initializes a new LoggedException. | |
| LoggedException (const std::string &what) throw () | |
| It initializes a new LoggedException. | |
| virtual const char * | what () const throw () |
| It outputs the exception message. | |
| virtual | ~LoggedException () throw () |
| Destructor. | |
Protected Attributes | |
| int | m_code |
| The internal exception code. | |
| std::string | m_msg |
| The internal exception message. | |
A class that automatically logs the exception message.
Definition at line 43 of file LoggedException.h.
|
explicit | |||||||||||||
It initializes a new LoggedException.
| what | A brief description of what has raised the exception. |
References te::common::Exception::what().
|
explicit | |||||||||||||
It initializes a new LoggedException.
| what | A brief description of what has raised the exception. |
References te::common::Exception::what().
|
virtual | ||||||||||||
Destructor.
|
virtualinherited | ||||||||||||
It gets the exception code.
References code().
Referenced by code(), Exception(), and Exception().
|
virtual | ||||||||||||
It return the exception class name.
Reimplemented from te::common::Exception.
References getClassName().
Referenced by getClassName().
|
virtualinherited | ||||||||||||
It outputs the exception message.
References what().
Referenced by Exception(), Exception(), te::common::LoggedException::LoggedException(), te::common::LoggedException::LoggedException(), and what().
|
protectedinherited |
The internal exception code.
Definition at line 105 of file Exception.h.
|
protectedinherited |
The internal exception message.
Definition at line 106 of file Exception.h.