3 #ifndef GAUDIALG_ERRORTOOL_H
4 #define GAUDIALG_ERRORTOOL_H 1
37 const std::string&
name,
67 (
const std::string&
msg ,
69 const size_t mx = 10 )
const
83 (
const std::string& msg ,
85 const size_t mx = 10 )
const
98 (
const std::string& msg ,
114 const std::string& message =
"" ,
127 (
const std::string & msg ,
141 (
const std::string & msg ,
142 const std::exception & exc ,
154 (
const std::string& msg =
"no message" ,
160 #endif // GAUDIALG_ERRORTOOL_H
Define general base for Gaudi exception.
StatusCode Error(const std::string &msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const
Print the error message and return with the given StatusCode.
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.
MsgStream & msg() const
shortcut for the method msgStream ( MSG::INFO )
StatusCode Warning(const std::string &msg, const StatusCode st=StatusCode::FAILURE, const size_t mx=10) const
Print the warning 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.