#include "GaudiKernel/GaudiException.h"Include dependency graph for GiGaException.h:
Go to the source code of this file.
Classes | |
| class | GiGaException |
Defines | |
| #define | GIGA_GIGAEXCEPTION_H 1 |
| |
| #define | ___GIGA_TRY___ try |
| set of useful macros | |
| #define | ___GIGA_THROW_GIGA____(_tag, _method, _exception) |
| #define | ___GIGA_THROW_GAUDI___(_tag, _method, _exception) |
| #define | ___GIGA_THROW_STD_____(_tag, _method, _exception) |
| #define | ___GIGA_THROW_ALL_____(_tag, _method) |
| #define | ___GIGA_PRINT_GIGA____(_tag, _method, _ms, _ss, _ex) |
| #define | ___GIGA_PRINT_GAUDI___(_tag, _method, _ms, _ss, _ex) |
| #define | ___GIGA_PRINT_STD_____(_tag, _method, _ms, _ss, _ex) |
| #define | ___GIGA_PRINT_ALL_____(_tag, _method, _ms, _ss) |
| #define | ___GIGA_CATCH_GIGA____(_body) |
| #define | ___GIGA_CATCH_GAUDI___(_body) |
| #define | ___GIGA_CATCH_STD_____(_body) |
| #define | ___GIGA_CATCH_ALL_____(_body) catch(...){ _body; } |
| #define | ___GIGA_CATCH_AND_THROW_GIGA____(_tag, _method) |
| #define | ___GIGA_CATCH_AND_THROW_GAUDI___(_tag, _method) |
| #define | ___GIGA_CATCH_AND_THROW_STD_____(_tag, _method) |
| #define | ___GIGA_CATCH_AND_THROW_ALL_____(_tag, _method) |
| #define | ___GIGA_CATCH_AND_PRINT_GIGA____(_tag, _method, _ms, _ss) |
| #define | ___GIGA_CATCH_AND_PRINT_GAUDI___(_tag, _method, _ms, _ss) |
| #define | ___GIGA_CATCH_AND_PRINT_STD_____(_tag, _method, _ms, _ss) |
| #define | ___GIGA_CATCH_AND_PRINT_ALL_____(_tag, _method, _ms, _ss) |
| #define | ___GIGA_CATCH_PRINT_AND_RETURN_GIGA____(_tag, _method, _ms, _ss, _sc) |
| #define | ___GIGA_CATCH_PRINT_AND_RETURN_GAUDI___(_tag, _method, _ms, _ss, _sc) |
| #define | ___GIGA_CATCH_PRINT_AND_RETURN_STD_____(_tag, _method, _ms, _ss, _sc) |
| #define | ___GIGA_CATCH_PRINT_AND_RETURN_ALL_____(_tag, _method, _ms, _ss, _sc) |
| #define | ___GIGA_CATCH___(_body) |
| #define | ___GIGA_CATCH_AND_RETURN___(_ret) ___GIGA_CATCH____( return _ret ) |
| #define | ___GIGA_CATCH_AND_THROW___(_tag, _method) |
| #define | ___GIGA_CATCH_AND_PRINT___(_tag, _method, _ms, _ss) |
| #define | ___GIGA_CATCH_PRINT_AND_RETURN___(_tag, _method, _ms, _ss, _sc) |
| #define GIGA_GIGAEXCEPTION_H 1 |
Revision 1.5 2001/08/12 15:42:43 ibelyaev improvements with Doxygen comments
Revision 1.4 2001/07/23 13:11:42 ibelyaev the package restructurisation(II)
Revision 1.3 2001/07/15 20:53:53 ibelyaev package restructurisation
Definition at line 19 of file GiGaException.h.
| #define ___GIGA_TRY___ try |
| #define ___GIGA_THROW_GIGA____ | ( | _tag, | |||
| _method, | |||||
| _exception | ) |
Value:
{ std::string _str(_tag); \
_str += " GiGaException is catched "; \
if(!( '\0' == _method[0] || (' ' == _method[0] && '\0' == _method[1]))) \
{ _str += " from " ; _str += _method ; } \
throw GiGaException( _str, _exception ); }
Definition at line 67 of file GiGaException.h.
| #define ___GIGA_THROW_GAUDI___ | ( | _tag, | |||
| _method, | |||||
| _exception | ) |
Value:
{ std::string _str(_tag); \
_str += " GaudiException with tag="; \
_str += _exception.tag(); \
_str += " is catched "; \
if(!( '\0' == _method[0] || (' ' == _method[0] && '\0' == _method[1]))) \
{ _str += " from " ; _str += _method ; } \
throw GiGaException( _str, _exception ); }
Definition at line 74 of file GiGaException.h.
| #define ___GIGA_THROW_STD_____ | ( | _tag, | |||
| _method, | |||||
| _exception | ) |
Value:
{ std::string _str(_tag); \
_str += " std::exception with what="; \
_str += _exception.what(); \
_str += " is catched "; \
if(!( '\0' == _method[0] || (' ' == _method[0] && '\0' == _method[1]))) \
{ _str += " from " ; _str += _method ; } \
throw GiGaException( _str ); }
Definition at line 83 of file GiGaException.h.
| #define ___GIGA_THROW_ALL_____ | ( | _tag, | |||
| _method | ) |
Value:
{ std::string _str(_tag); \
_str += " UNKNOWN exception "; \
_str += " is catched "; \
if(!( '\0' == _method[0] || (' ' == _method[0] && '\0' == _method[1]))) \
{ _str += " from " ; _str += _method ; } \
throw GiGaException( _str ); }
Definition at line 92 of file GiGaException.h.
| #define ___GIGA_PRINT_GIGA____ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss, | |||||
| _ex | ) |
Value:
{ std::string _str(_tag); \
_str += " GiGaException is catched "; \
if(!( '\0' == _method[0] || (' ' == _method[0] && '\0' == _method[1]))) \
{ _str += " from " ; _str += _method ; } \
MsgStream _log1( _ms , _tag ); \
MsgStream _log2( _ms , _ex.tag() ); \
_log1 << MSG::ERROR << _str << " : " << endreq; \
_log2 << MSG::ERROR << _ex << endreq; \
Stat _stat( _ss , _ex.tag() ); }
Definition at line 101 of file GiGaException.h.
| #define ___GIGA_PRINT_GAUDI___ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss, | |||||
| _ex | ) |
Value:
{ std::string _str(_tag); \
_str += " GaudiException with tag="; \
_str += _ex.tag(); \
_str += "is catched "; \
if(!( '\0' == _method[0] || (' ' == _method[0] && '\0' == _method[1]))) \
{ _str += " from " ; _str += _method ; } \
MsgStream _log1( _ms , _tag ); \
MsgStream _log2( _ms , _ex.tag() ); \
_log1 << MSG::ERROR << _str << " : " << endreq; \
_log2 << MSG::ERROR << _ex << endreq; \
Stat _stat( _ss , _ex.tag() ); }
Definition at line 112 of file GiGaException.h.
| #define ___GIGA_PRINT_STD_____ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss, | |||||
| _ex | ) |
Value:
{ std::string _str(_tag); \
_str += " std::exception with what="; \
_str += _ex.what(); \
_str += "is catched "; \
if(!( '\0' == _method[0] || (' ' == _method[0] && '\0' == _method[1]))) \
{ _str += " from " ; _str += _method ; } \
MsgStream _log1( _ms , _tag ); \
MsgStream _log2( _ms , _ex.what() ); \
_log1 << MSG::ERROR << _str << " : " << endreq; \
_log2 << MSG::ERROR << "*std::exception* what=" \
<< _ex.what() << endreq; \
Stat _stat( _ss , "*std::exception*" ); }
Definition at line 125 of file GiGaException.h.
| #define ___GIGA_PRINT_ALL_____ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss | ) |
Value:
{ std::string _str(_tag); \
_str += " UNKNOWN exception "; \
_str += "is catched "; \
if(!( '\0' == _method[0] || (' ' == _method[0] && '\0' == _method[1]))) \
{ _str += " from " ; _str += _method ; } \
MsgStream _log1( _ms , _tag ); \
MsgStream _log2( _ms , "*UNKNOWN exception*" ); \
_log1 << MSG::ERROR << _str << " : " << endreq; \
_log2 << MSG::ERROR << "*UNKNOWN exception*" << endreq; \
Stat _stat( _ss , "*UNKNOWN exception*" ); }
Definition at line 139 of file GiGaException.h.
| #define ___GIGA_CATCH_GIGA____ | ( | _body | ) |
Value:
catch( const GiGaException & _ex ) \ { _body; }
Definition at line 151 of file GiGaException.h.
| #define ___GIGA_CATCH_GAUDI___ | ( | _body | ) |
Value:
catch( const GaudiException & _ex ) \ { _body; }
Definition at line 154 of file GiGaException.h.
| #define ___GIGA_CATCH_STD_____ | ( | _body | ) |
Value:
catch( const std::exception & _ex ) \ { _body; }
Definition at line 157 of file GiGaException.h.
| #define ___GIGA_CATCH_ALL_____ | ( | _body | ) | catch(...){ _body; } |
Definition at line 160 of file GiGaException.h.
| #define ___GIGA_CATCH_AND_THROW_GIGA____ | ( | _tag, | |||
| _method | ) |
Value:
catch( const GiGaException & _ex ) \ { ___GIGA_THROW_GIGA____(_tag,_method,_ex) ; }
Definition at line 163 of file GiGaException.h.
| #define ___GIGA_CATCH_AND_THROW_GAUDI___ | ( | _tag, | |||
| _method | ) |
Value:
catch( const GaudiException & _ex ) \ { ___GIGA_THROW_GAUDI___(_tag,_method,_ex) ; }
Definition at line 167 of file GiGaException.h.
| #define ___GIGA_CATCH_AND_THROW_STD_____ | ( | _tag, | |||
| _method | ) |
Value:
catch( const std::exception & _ex ) \ { ___GIGA_THROW_STD_____(_tag,_method,_ex) ; }
Definition at line 171 of file GiGaException.h.
| #define ___GIGA_CATCH_AND_THROW_ALL_____ | ( | _tag, | |||
| _method | ) |
Value:
catch(...) \ { ___GIGA_THROW_ALL_____(_tag,_method) ; }
Definition at line 175 of file GiGaException.h.
| #define ___GIGA_CATCH_AND_PRINT_GIGA____ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss | ) |
Value:
catch( const GiGaException & _ex ) \ { ___GIGA_PRINT_GIGA____(_tag,_method,_ms,_ss,_ex) ; }
Definition at line 180 of file GiGaException.h.
| #define ___GIGA_CATCH_AND_PRINT_GAUDI___ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss | ) |
Value:
catch( const GaudiException & _ex ) \ { ___GIGA_PRINT_GAUDI___(_tag,_method,_ms,_ss,_ex) ; }
Definition at line 184 of file GiGaException.h.
| #define ___GIGA_CATCH_AND_PRINT_STD_____ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss | ) |
Value:
catch( const std::exception & _ex ) \ { ___GIGA_PRINT_STD_____(_tag,_method,_ms,_ss,_ex) ; }
Definition at line 188 of file GiGaException.h.
| #define ___GIGA_CATCH_AND_PRINT_ALL_____ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss | ) |
Value:
catch(...) \ { ___GIGA_PRINT_ALL_____(_tag,_method,_ms,_ss) ; }
Definition at line 192 of file GiGaException.h.
| #define ___GIGA_CATCH_PRINT_AND_RETURN_GIGA____ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss, | |||||
| _sc | ) |
Value:
catch( const GiGaException & _ex ) \ { ___GIGA_PRINT_GIGA____(_tag,_method,_ms,_ss,_ex) ; return _sc ; }
Definition at line 197 of file GiGaException.h.
| #define ___GIGA_CATCH_PRINT_AND_RETURN_GAUDI___ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss, | |||||
| _sc | ) |
Value:
catch( const GaudiException & _ex ) \ { ___GIGA_PRINT_GAUDI___(_tag,_method,_ms,_ss,_ex) ; return _sc ; }
Definition at line 201 of file GiGaException.h.
| #define ___GIGA_CATCH_PRINT_AND_RETURN_STD_____ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss, | |||||
| _sc | ) |
Value:
catch( const std::exception & _ex ) \ { ___GIGA_PRINT_STD_____(_tag,_method,_ms,_ss,_ex) ; return _sc ; }
Definition at line 205 of file GiGaException.h.
| #define ___GIGA_CATCH_PRINT_AND_RETURN_ALL_____ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss, | |||||
| _sc | ) |
Value:
catch(...) \ { ___GIGA_PRINT_ALL_____(_tag,_method,_ms,_ss) ; return _sc ; }
Definition at line 209 of file GiGaException.h.
| #define ___GIGA_CATCH___ | ( | _body | ) |
Value:
___GIGA_CATCH_GIGA____(_body) \ ___GIGA_CATCH_GAUDI___(_body) \ ___GIGA_CATCH_STD_____(_body) \ ___GIGA_CATCH_ALL_____(_body)
Definition at line 214 of file GiGaException.h.
| #define ___GIGA_CATCH_AND_RETURN___ | ( | _ret | ) | ___GIGA_CATCH____( return _ret ) |
Definition at line 220 of file GiGaException.h.
| #define ___GIGA_CATCH_AND_THROW___ | ( | _tag, | |||
| _method | ) |
Value:
___GIGA_CATCH_AND_THROW_GIGA____(_tag,_method) \ ___GIGA_CATCH_AND_THROW_GAUDI___(_tag,_method) \ ___GIGA_CATCH_AND_THROW_STD_____(_tag,_method) \ ___GIGA_CATCH_AND_THROW_ALL_____(_tag,_method)
Definition at line 223 of file GiGaException.h.
| #define ___GIGA_CATCH_AND_PRINT___ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss | ) |
Value:
___GIGA_CATCH_AND_PRINT_GIGA____(_tag,_method,_ms,_ss) \ ___GIGA_CATCH_AND_PRINT_GAUDI___(_tag,_method,_ms,_ss) \ ___GIGA_CATCH_AND_PRINT_STD_____(_tag,_method,_ms,_ss) \ ___GIGA_CATCH_AND_PRINT_ALL_____(_tag,_method,_ms,_ss)
Definition at line 229 of file GiGaException.h.
| #define ___GIGA_CATCH_PRINT_AND_RETURN___ | ( | _tag, | |||
| _method, | |||||
| _ms, | |||||
| _ss, | |||||
| _sc | ) |
Value:
___GIGA_CATCH_PRINT_AND_RETURN_GIGA____(_tag,_method,_ms,_ss,_sc) \ ___GIGA_CATCH_PRINT_AND_RETURN_GAUDI___(_tag,_method,_ms,_ss,_sc) \ ___GIGA_CATCH_PRINT_AND_RETURN_STD_____(_tag,_method,_ms,_ss,_sc) \ ___GIGA_CATCH_PRINT_AND_RETURN_ALL_____(_tag,_method,_ms,_ss,_sc)
Definition at line 235 of file GiGaException.h.
1.4.7