1 #ifndef GAUDIALG_ERRORTOOL_H
2 #define GAUDIALG_ERRORTOOL_H 1
8 #include "GaudiAlg/GaudiTool.h"
9 #include "GaudiAlg/IErrorTool.h"
35 const std::string&
name,
65 (
const std::string&
msg ,
67 const size_t mx = 10 )
const override
81 (
const std::string& msg ,
83 const size_t mx = 10 )
const override
96 (
const std::string& msg ,
112 const std::string& message =
"" ,
125 (
const std::string & msg ,
139 (
const std::string & msg ,
140 const std::exception & exc ,
152 (
const std::string& msg =
"no message" ,
158 #endif // GAUDIALG_ERRORTOOL_H
Define general base for Gaudi exception.
MsgStream & msg() const
shortcut for the method msgStream(MSG::INFO)
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
StatusCode Print(const std::string &msg, const StatusCode st=StatusCode::SUCCESS, const MSG::Level lev=MSG::INFO) const
Print the message and return with the given StatusCode.
void Assert(const bool ok, const std::string &message="", const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const
Assertion - throw exception if the given condition is not fulfilled.
void Exception(const std::string &msg, const GaudiException &exc, const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const
Create and (re)-throw a given GaudiException.