![]() |
The Gaudi Framework
master (b9786168)
|
Define general base for Gaudi exception. More...
#include <GaudiKernel/GaudiException.h>


Public Member Functions | |
| GaudiException (std::string Message, std::string Tag, StatusCode Code) | |
| Constructor (1) | |
| GaudiException (std::string Message, std::string Tag, StatusCode Code, const GaudiException &Exception) | |
| Constructor (2) | |
| GaudiException (std::string Message, std::string Tag, StatusCode Code, const std::exception &Exception) | |
| Constructor (3) | |
| GaudiException (const GaudiException &Exception) | |
| Copy constructor (deep copying!) | |
| virtual | ~GaudiException () throw () |
| destructor (perform the deletion of "previous" field!) | |
| GaudiException & | operator= (const GaudiException &Exception) |
| assignment operator | |
| virtual const std::string & | message () const |
| error message to be printed | |
| virtual const std::string & | setMessage (const std::string &newMessage) |
| update the error message to be printed | |
| virtual const std::string & | tag () const |
| name tag for the exception, or exception type | |
| virtual const std::string & | setTag (const std::string &newTag) |
| update name tag | |
| virtual const StatusCode & | code () const |
| StatusCode for Exception. | |
| virtual const StatusCode & | setCode (const StatusCode &newStatus) |
| update the status code for the exception | |
| virtual GaudiException * | previous () const |
| get the previous exception ( "previous" element in the linked list) | |
| virtual const std::string & | backTrace () const |
| return the stack trace at instantiation | |
| virtual std::ostream & | printOut (std::ostream &os=std::cerr) const |
| methods for overloaded printout to std::ostream& and MsgStream& | |
| virtual MsgStream & | printOut (MsgStream &os) const |
| Output the exception to the Gaudi MsgStream. | |
| virtual GaudiException * | clone () const |
| clone operation | |
| const char * | what () const override throw () |
| method from std::exception | |
Protected Attributes | |
| std::string | m_message |
| std::string | m_tag |
| error message | |
| StatusCode | m_code |
| exception tag | |
| std::string | m_backTrace |
| status code for exception | |
| std::unique_ptr< GaudiException > | m_previous |
| stack trace at instantiation | |
Static Protected Attributes | |
| static bool | s_proc |
| "previous" element in the linked list | |
Friends | |
| class | StatusCode |
| std::ostream & | operator<< (std::ostream &os, const GaudiException &ge) |
| overloaded printout to std::ostream | |
| std::ostream & | operator<< (std::ostream &os, const GaudiException *pge) |
| overloaded printout to std::ostream | |
| MsgStream & | operator<< (MsgStream &os, const GaudiException &ge) |
| overloaded printout to MsgStream | |
| MsgStream & | operator<< (MsgStream &os, const GaudiException *pge) |
| overloaded printout to MsgStream | |
Define general base for Gaudi exception.
Definition at line 29 of file GaudiException.h.
| GaudiException::GaudiException | ( | std::string | Message, |
| std::string | Tag, | ||
| StatusCode | Code ) |
Constructor (1)
| Message | error message |
| Tag | "name tag", or exeption type |
| Code | status code |
Definition at line 26 of file GaudiException.cpp.
| GaudiException::GaudiException | ( | std::string | Message, |
| std::string | Tag, | ||
| StatusCode | Code, | ||
| const GaudiException & | Exception ) |
Constructor (2)
| Message | error message |
| Tag | "name tag", or exeption type |
| Code | status code |
| Exception | "previous" exception |
Definition at line 32 of file GaudiException.cpp.
| GaudiException::GaudiException | ( | std::string | Message, |
| std::string | Tag, | ||
| StatusCode | Code, | ||
| const std::exception & | Exception ) |
Constructor (3)
| Message | error message |
| Tag | "name tag", or exeption type |
| Code | status code |
| Exception | "previous" exception (used to improve the error message) |
Definition at line 40 of file GaudiException.cpp.
| GaudiException::GaudiException | ( | const GaudiException & | Exception | ) |
Copy constructor (deep copying!)
Definition at line 47 of file GaudiException.cpp.
|
virtual | ||||||||||||
destructor (perform the deletion of "previous" field!)
Definition at line 57 of file GaudiException.cpp.
|
inlinevirtual |
|
inlinevirtual |
clone operation
Reimplemented in UpdateManagerException.
Definition at line 105 of file GaudiException.h.
|
inlinevirtual |
|
inlinevirtual |
| GaudiException & GaudiException::operator= | ( | const GaudiException & | Exception | ) |
assignment operator
Definition at line 59 of file GaudiException.cpp.
|
inlinevirtual |
get the previous exception ( "previous" element in the linked list)
Definition at line 93 of file GaudiException.h.
Output the exception to the Gaudi MsgStream.
Definition at line 74 of file GaudiException.cpp.
|
virtual |
methods for overloaded printout to std::ostream& and MsgStream&
Definition at line 68 of file GaudiException.cpp.
|
inlinevirtual |
update the status code for the exception
Definition at line 87 of file GaudiException.h.
|
inlinevirtual |
update the error message to be printed
Definition at line 69 of file GaudiException.h.
|
inlinevirtual |
update name tag
Definition at line 78 of file GaudiException.h.
|
inlinevirtual |
|
inlineoverride | ||||||||||||
|
friend |
|
friend |
overloaded printout to MsgStream
Definition at line 88 of file GaudiException.cpp.
|
friend |
|
friend |
overloaded printout to std::ostream
Definition at line 82 of file GaudiException.cpp.
|
friend |
Definition at line 30 of file GaudiException.h.
|
protected |
status code for exception
Definition at line 126 of file GaudiException.h.
|
protected |
exception tag
Definition at line 125 of file GaudiException.h.
|
protected |
Definition at line 123 of file GaudiException.h.
|
protected |
stack trace at instantiation
Definition at line 127 of file GaudiException.h.
|
protected |
error message
Definition at line 124 of file GaudiException.h.
|
staticprotected |
"previous" element in the linked list
Definition at line 128 of file GaudiException.h.