69 virtual const std::string&
setMessage(
const std::string& newMessage ) {
75 virtual const std::string&
tag()
const {
return m_tag; }
78 virtual const std::string&
setTag(
const std::string& newTag ) {
99 virtual std::ostream& printOut( std::ostream& os = std::cerr )
const;
108 const char*
what()
const throw()
override {
return message().c_str(); }
Define general base for Gaudi exception.
virtual const std::string & message() const
error message to be printed
static bool s_proc
"previous" element in the linked list
virtual const StatusCode & code() const
StatusCode for Exception.
GaudiException(std::string Message, std::string Tag, StatusCode Code)
Constructor (1)
StatusCode m_code
exception tag
virtual const std::string & setTag(const std::string &newTag)
update name tag
virtual GaudiException * clone() const
clone operation
virtual const std::string & setMessage(const std::string &newMessage)
update the error message to be printed
std::unique_ptr< GaudiException > m_previous
stack trace at instantiation
std::string m_tag
error message
const char * what() const override
method from std::exception
std::string m_backTrace
status code for exception
virtual const std::string & backTrace() const
return the stack trace at instantiation
virtual GaudiException * previous() const
get the previous exception ( "previous" element in the linked list)
virtual const std::string & tag() const
name tag for the exception, or exception type
virtual const StatusCode & setCode(const StatusCode &newStatus)
update the status code for the exception
Definition of the MsgStream class used to transmit messages.
ostream & operator<<(ostream &s, const MyCustomType &m)