17 : m_message(
std::move(
Message ) ), m_tag(
std::move( Tag ) ), m_code(
std::move( Code ) ) {
24 , m_tag(
std::move( Tag ) )
25 , m_code(
std::move( Code ) )
26 , m_previous( Exception.clone() ) {
31 : m_message(
std::move(
Message ) ), m_tag(
std::move( Tag ) ), m_code(
std::move( Code ) ) {
38 :
std::exception( Exception )
39 , m_message{Exception.
message()}
40 , m_tag{Exception.tag()}
41 , m_code{Exception.code()}
42 , m_backTrace{Exception.backTrace()}
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 );
GaudiException & operator=(const GaudiException &Exception)
assignment operator
Definition of the MsgStream class used to transmit messages.
Define general base for Gaudi exception.
virtual GaudiException * previous() const
get the previous exception ( "previous" element in the linked list)
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
virtual const std::string & tag() const
name tag for the exception, or exception type
virtual const std::string & message() const
error message to be printed
GAUDI_API int backTrace(void **addresses, const int depth)
std::string m_tag
error message
This class is used for returning status codes from appropriate routines.
GAUDI_API bool isEnvSet(const char *var)
Check if an environment variable is set or not.
virtual const StatusCode & code() const
StatusCode for Exception.
virtual GaudiException * clone() const
clone operation
std::ostream & operator<<(std::ostream &os, const GaudiException &ge)
overloaded printout to std::ostream
std::string m_backTrace
status code for exception
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 ~GaudiException()
destructor (perform the deletion of "previous" field!)
StatusCode m_code
exception tag
const StatusCode & setChecked(bool checked=true) const
Check/uncheck StatusCode.
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)