17 : m_message(
std::move( Message ) ), m_tag(
std::move( Tag ) ), m_code(
std::move( Code ) ) {
40 ,
m_tag{Exception.tag()}
43 ,
m_previous{Exception.previous() ? Exception.previous()->
clone() :
nullptr} {
76 return ( 0 == pge ) ? ( os <<
" GaudiException* points to NULL!" ) : ( os << *pge );
82 return ( 0 == pge ) ? ( os <<
" GaudiException* points to NULL!" ) : ( os << *pge );
virtual const std::string & message() const
error message to be printed
GaudiException & operator=(const GaudiException &Exception)
assignment operator
Definition of the MsgStream class used to transmit messages.
virtual const std::string & backTrace() const
return the stack trace at instantiation
Define general base for Gaudi exception.
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type.
static bool s_proc
"previous" element in the linked list
const StatusCode & setChecked(bool checked=true) const
Check/uncheck StatusCode.
GAUDI_API int backTrace(void **addresses, const int depth)
std::string m_tag
error message
virtual const StatusCode & code() const
StatusCode for Exception.
This class is used for returning status codes from appropriate routines.
virtual GaudiException * previous() const
get the previous exception ( "previous" element in the linked list)
virtual std::ostream & printOut(std::ostream &os=std::cerr) const
methods for overloaded printout to std::ostream& and MsgStream&
virtual GaudiException * clone() const
clone operation
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::ostream & operator<<(std::ostream &os, const GaudiException &ge)
overloaded printout to std::ostream
std::string m_backTrace
status code for exception
virtual ~GaudiException()
destructor (perform the deletion of "previous" field!)
StatusCode m_code
exception tag
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
std::unique_ptr< GaudiException > m_previous
stack trace at instantiation
GaudiException(std::string Message, std::string Tag, StatusCode Code)
Constructor (1)