11 #ifndef GAUDIALG_ERRORTOOL_H 12 #define GAUDIALG_ERRORTOOL_H 1 66 const size_t mx = 10 )
const override {
81 const size_t mx = 10 )
const override {
151 #endif // GAUDIALG_ERRORTOOL_H
Define general base for Gaudi exception.
void Assert(const bool ok, std::string_view message="", const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const
Assertion - throw exception if the given condition is not fulfilled.
constexpr static const auto SUCCESS
StatusCode Print(std::string_view msg, const StatusCode st=StatusCode::SUCCESS, const MSG::Level lev=MSG::INFO) const
Print the message and return with the given StatusCode.
virtual const std::string & name() const =0
Retrieve the name of the instance.
void Exception(std::string_view msg, const GaudiException &exc, const StatusCode sc=StatusCode(StatusCode::FAILURE, true)) const
Create and (re)-throw a given GaudiException.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
constexpr static const auto FAILURE