1 #ifndef GAUDIALG_ERRORTOOL_H 2 #define GAUDIALG_ERRORTOOL_H 1 56 const size_t mx = 10 )
const override {
71 const size_t mx = 10 )
const override {
141 #endif // GAUDIALG_ERRORTOOL_H
Define general base for Gaudi exception.
void Exception(const std::string &msg, const GaudiException &exc, const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const
Create and (re)-throw a given GaudiException.
constexpr static const auto SUCCESS
virtual const std::string & name() const =0
Retrieve the name of the instance.
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.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
constexpr static const auto FAILURE
WARN_UNUSED 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.