#include <GaudiKernel/Time.h>
Inheritance diagram for TimeException:
Public Member Functions | |
TimeException (const std::string &Message="unspecified exception", const std::string &Tag="*Gaudi::Time*", const StatusCode &Code=StatusCode::FAILURE) | |
virtual | ~TimeException () throw () |
Destructor. | |
virtual TimeException * | clone () const |
Clone the exception. | |
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 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 const char * | what () const throw () |
method from std::exception | |
Protected Attributes | |
std::string | m_message |
std::string | m_tag |
error message | |
StatusCode | m_code |
exception tag | |
GaudiException * | m_previous |
status code for exception |
Definition at line 21 of file Time.h.
TimeException::TimeException | ( | const std::string & | Message = "unspecified exception" , |
|
const std::string & | Tag = "*Gaudi::Time*" , |
|||
const StatusCode & | Code = StatusCode::FAILURE | |||
) | [inline] |
virtual TimeException::~TimeException | ( | ) | throw () [inline, virtual] |
virtual TimeException* TimeException::clone | ( | ) | const [inline, virtual] |
Clone the exception.
Reimplemented from GaudiException.
Definition at line 31 of file Time.h.
00031 { return new TimeException(*this); }
virtual const std::string& GaudiException::message | ( | ) | const [inline, virtual, inherited] |
error message to be printed
Definition at line 113 of file GaudiException.h.
00113 { return m_message; }
virtual const std::string& GaudiException::setMessage | ( | const std::string & | newMessage | ) | [inline, virtual, inherited] |
virtual const std::string& GaudiException::tag | ( | ) | const [inline, virtual, inherited] |
name tag for the exception, or exception type
Definition at line 121 of file GaudiException.h.
00121 { return m_tag; }
virtual const std::string& GaudiException::setTag | ( | const std::string & | newTag | ) | [inline, virtual, inherited] |
virtual const StatusCode& GaudiException::code | ( | ) | const [inline, virtual, inherited] |
virtual const StatusCode& GaudiException::setCode | ( | const StatusCode & | newStatus | ) | [inline, virtual, inherited] |
virtual GaudiException* GaudiException::previous | ( | ) | const [inline, virtual, inherited] |
get the previous exception ( "previous" element in the linked list)
Definition at line 137 of file GaudiException.h.
00137 { return m_previous ; }
virtual std::ostream& GaudiException::printOut | ( | std::ostream & | os = std::cerr |
) | const [inline, virtual, inherited] |
methods for overloaded printout to std::ostream& and MsgStream&
Definition at line 140 of file GaudiException.h.
00140 { 00141 os << tag() << " \t " << message() ; 00142 switch( code() ) { 00143 case StatusCode::SUCCESS : os << "\t StatusCode=SUCCESS" ; break ; 00144 case StatusCode::FAILURE : os << "\t StatusCode=FAILURE" ; break ; 00145 default : os << "\t StatusCode=" << code() ; break ; 00146 } 00147 return ( 0 != previous() ) ? previous()->printOut( os << std::endl ) : os ; 00148 };
Output the exception to the Gaudi MsgStream.
Definition at line 151 of file GaudiException.h.
00151 { 00152 os << tag() << "\t" << message() ; 00153 switch( code() ) { 00154 case StatusCode::SUCCESS : os << "\t StatusCode=SUCCESS" ; break ; 00155 case StatusCode::FAILURE : os << "\t StatusCode=FAILURE" ; break ; 00156 default : os << "\t StatusCode=" << code().getCode() ; break ; 00157 } 00158 return ( 0 != previous() ) ? previous()->printOut( os << endreq ) : os ; 00159 }
virtual const char* GaudiException::what | ( | ) | const throw () [inline, virtual, inherited] |
method from std::exception
Definition at line 165 of file GaudiException.h.
00165 { return message().c_str() ; }
std::string GaudiException::m_message [mutable, protected, inherited] |
Definition at line 167 of file GaudiException.h.
std::string GaudiException::m_tag [mutable, protected, inherited] |
StatusCode GaudiException::m_code [mutable, protected, inherited] |
GaudiException* GaudiException::m_previous [mutable, protected, inherited] |