|
LDMX Software
|
Standard base exception class with some useful output information. More...
#include <Exception.h>
Public Member Functions | |
| Exception () throw () | |
| Empty constructor. | |
| Exception (const std::string &name, const std::string &message, const std::string &module, int line, const std::string &function) | |
| Class constructor. | |
| virtual | ~Exception () throw () |
| Class destructor. | |
| const std::string & | name () const throw () |
| Get the name of the exception. | |
| const std::string & | message () const throw () |
| Get the message of the exception. | |
| const std::string & | module () const throw () |
| Get the source filename where the exception occurred. | |
| const std::string & | function () const throw () |
| Get the function name where the exception occurred. | |
| int | line () const throw () |
| Get the source line number where the exception occurred. | |
| virtual const char * | what () const throw () |
| The error message. | |
| const std::string & | stackTrace () const throw () |
| Get the full stack trace. | |
Private Member Functions | |
| void | buildStackTrace () throw () |
Private Attributes | |
| std::string | name_ |
| Exception name. | |
| std::string | message_ |
| Error message. | |
| std::string | module_ |
| Source filename where the exception occurred. | |
| std::string | function_ |
| Function name where the exception occurred. | |
| int | line_ {0} |
| Source line number where the exception occurred. | |
| std::string | stack_trace_ |
| The stack trace. | |
Standard base exception class with some useful output information.
Definition at line 20 of file Exception.h.
|
inline | ||||||||||||
Empty constructor.
Don't build stack trace for empty exceptions.
Definition at line 27 of file Exception.h.
|
inline |
Class constructor.
| name | Name of the exception. |
| message | Extended message describing the exception. |
| module | Filename in the source code where the exception occurred. |
| line | Line in the source code where the exception occurred. |
| function | Function in which the exception occurred. |
Definition at line 37 of file Exception.h.
|
inlinevirtual | ||||||||||||
|
private | ||||||||||||
Definition at line 156 of file Exception.cxx.
|
inline | ||||||||||||
Get the function name where the exception occurred.
Definition at line 74 of file Exception.h.
References function_.
Referenced by eventdisplay::Display::draw().
|
inline | ||||||||||||
Get the source line number where the exception occurred.
Definition at line 80 of file Exception.h.
References line_.
Referenced by eventdisplay::Display::draw().
|
inline | ||||||||||||
Get the message of the exception.
Definition at line 62 of file Exception.h.
References message_.
Referenced by eventdisplay::Display::draw().
|
inline | ||||||||||||
Get the source filename where the exception occurred.
Definition at line 68 of file Exception.h.
References module_.
Referenced by eventdisplay::Display::draw().
|
inline | ||||||||||||
Get the name of the exception.
Definition at line 56 of file Exception.h.
References name_.
Referenced by eventdisplay::Display::draw().
|
inline | ||||||||||||
|
inlinevirtual | ||||||||||||
The error message.
Definition at line 86 of file Exception.h.
References message_.
|
private |
Function name where the exception occurred.
Definition at line 106 of file Exception.h.
Referenced by function().
|
private |
Source line number where the exception occurred.
Definition at line 109 of file Exception.h.
Referenced by line().
|
private |
|
private |
Source filename where the exception occurred.
Definition at line 103 of file Exception.h.
Referenced by module().
|
private |
|
private |