Go to the documentation of this file.
27 : m_message(
std::move(
Message ) ), m_tag(
std::move( Tag ) ), m_code(
std::move( Code ) ) {
34 , m_tag(
std::move( Tag ) )
35 , m_code(
std::move( Code ) )
36 , m_previous( Exception.clone() ) {
41 : m_message(
std::move(
Message ) ), m_tag(
std::move( Tag ) ), m_code(
std::move( Code ) ) {
48 :
std::exception( Exception )
49 , m_message{ Exception.message() }
50 , m_tag{ Exception.tag() }
61 m_tag = Exception.tag();
64 m_previous.
reset( Exception.previous() ? Exception.previous()->clone() :
nullptr );
83 return ( 0 == pge ) ? ( os <<
" GaudiException* points to NULL!" ) : ( os << *pge );
89 return ( 0 == pge ) ? ( os <<
" GaudiException* points to NULL!" ) : ( os << *pge );
static bool s_proc
"previous" element in the linked list
std::unique_ptr< GaudiException > m_previous
stack trace at instantiation
virtual GaudiException * previous() const
get the previous exception ( "previous" element in the linked list)
std::ostream & operator<<(std::ostream &os, const GaudiException &ge)
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
GAUDI_API int backTrace(void **addresses, const int depth)
virtual const std::string & message() const
error message to be printed
GaudiException & operator=(const GaudiException &Exception)
assignment operator
virtual const std::string & backTrace() const
return the stack trace at instantiation
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
virtual const std::string & tag() const
name tag for the exception, or exception type
GAUDI_API bool isEnvSet(const char *var)
Check if an environment variable is set or not.
std::string m_backTrace
status code for exception
std::string m_tag
error message
virtual const StatusCode & code() const
StatusCode for Exception.
virtual std::ostream & printOut(std::ostream &os=std::cerr) const
methods for overloaded printout to std::ostream& and MsgStream&
GaudiException(std::string Message, std::string Tag, StatusCode Code)
Constructor (1)
virtual ~GaudiException()
destructor (perform the deletion of "previous" field!)
StatusCode m_code
exception tag