Go to the documentation of this file.
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
void Assert(const bool ok, std::string_view message="", const StatusCode sc=StatusCode::FAILURE) const
Assertion - throw exception if the given condition is not fulfilled.
virtual const std::string & name() const =0
Retrieve the name of the instance.
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.
constexpr static const auto SUCCESS
void Exception(std::string_view msg, const GaudiException &exc, const StatusCode sc=StatusCode::FAILURE) const
Create and (re)-throw a given GaudiException.
constexpr static const auto FAILURE