Define general base for Gaudi exception.
More...
#include <GaudiKernel/GaudiException.h>
|
| static bool | s_proc |
| | "previous" element in the linked list
|
| |
Define general base for Gaudi exception.
- Author
- Vanya Belyaev
-
Sebastien Ponce
Definition at line 24 of file GaudiException.h.
| GaudiException::GaudiException |
( |
const std::string & |
Message, |
|
|
const std::string & |
Tag, |
|
|
const StatusCode & |
Code |
|
) |
| |
|
inline |
Constructor (1)
- Parameters
-
| Message | error message |
| Tag | "name tag", or exeption type |
| Code | status code |
Definition at line 42 of file GaudiException.h.
| GaudiException::GaudiException |
( |
const std::string & |
Message, |
|
|
const std::string & |
Tag, |
|
|
const StatusCode & |
Code, |
|
|
const GaudiException & |
Exception |
|
) |
| |
|
inline |
Constructor (2)
- Parameters
-
| Message | error message |
| Tag | "name tag", or exeption type |
| Code | status code |
| Exception | "previous" exception |
Definition at line 57 of file GaudiException.h.
| GaudiException::GaudiException |
( |
const std::string & |
Message, |
|
|
const std::string & |
Tag, |
|
|
const StatusCode & |
Code, |
|
|
const std::exception & |
Exception |
|
) |
| |
|
inline |
Constructor (3)
- Parameters
-
| Message | error message |
| Tag | "name tag", or exeption type |
| Code | status code |
| Exception | "previous" exception (used to improve the error message) |
Definition at line 73 of file GaudiException.h.
Copy constructor (deep copying!)
Definition at line 88 of file GaudiException.h.
: std::exception(Exception)
{
}
| virtual GaudiException::~GaudiException |
( |
| ) |
throw () |
|
inlinevirtual |
destructor (perform the deletion of "previous" field!)
Definition at line 99 of file GaudiException.h.
| virtual const StatusCode& GaudiException::code |
( |
| ) |
const |
|
inlinevirtual |
| virtual const std::string& GaudiException::message |
( |
| ) |
const |
|
inlinevirtual |
assignment operator
Definition at line 106 of file GaudiException.h.
{
if ( &Exception == this ) { return *this; }
return *this;
}
get the previous exception ( "previous" element in the linked list)
Definition at line 142 of file GaudiException.h.
| virtual std::ostream& GaudiException::printOut |
( |
std::ostream & |
os = std::cerr | ) |
const |
|
inlinevirtual |
methods for overloaded printout to std::ostream& and MsgStream&
Definition at line 145 of file GaudiException.h.
{
default : os <<
"\t StatusCode=" <<
code() ; break ;
}
}
| virtual const std::string& GaudiException::setMessage |
( |
const std::string & |
newMessage | ) |
|
|
inlinevirtual |
| virtual const std::string& GaudiException::setTag |
( |
const std::string & |
newTag | ) |
|
|
inlinevirtual |
| virtual const std::string& GaudiException::tag |
( |
| ) |
const |
|
inlinevirtual |
| virtual const char* GaudiException::what |
( |
| ) |
const throw () |
|
inlinevirtual |
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const GaudiException & |
ge |
|
) |
| |
|
friend |
| std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const GaudiException * |
pge |
|
) |
| |
|
friend |
Definition at line 183 of file GaudiException.h.
{ return (0 == pge) ?
( os << " GaudiException* points to NULL!" ) : ( os << *pge ); }
overloaded printout to MsgStream
Definition at line 192 of file GaudiException.h.
{
return (0 == pge) ?
( os << " GaudiException* points to NULL!" ) : ( os << *pge );
}
| std::string GaudiException::m_message |
|
mutableprotected |
| std::string GaudiException::m_tag |
|
mutableprotected |
| bool GaudiException::s_proc |
|
staticprotected |
The documentation for this class was generated from the following files:
- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r2/GaudiKernel/GaudiKernel/GaudiException.h
- /afs/.cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r2/GaudiKernel/src/Lib/GaudiException.cpp