11#define GAUDIKERNEL_STATUSCODE_CPP 1
30 const char* name()
const override {
return "Gaudi"; }
41 return "UNKNOWN(" + std::to_string( code ) +
")";
#define STATUSCODE_ENUM_IMPL(...)
Assign a category to the StatusCode enum declared with STATUSCODE_ENUM_DECL( ENUM )
Define general base for Gaudi exception.
StatusCode()=default
Default constructor.
unsigned long code_t
type of StatusCode value
std::string message() const
Description (or name) of StatusCode value.
constexpr static const auto RECOVERABLE
void i_doThrow(std::string_view message, std::string_view tag) const
Helper function to avoid circular dependency between GaudiException.h and StatusCode....
constexpr static const auto SUCCESS
constexpr static const auto FAILURE
The category assigned to a StatusCode.