1 #define GAUDIKERNEL_STATUSCODE_CPP 1 23 const char*
name()
const override {
return "Gaudi"; }
26 switch ( static_cast<StatusCode::ErrorCode>( code ) ) {
51 #
if __cplusplus > 201402L
52 !std::uncaught_exceptions()
61 const size_t depth = 21;
62 void* addresses[depth];
69 for (
size_t idx : {2, 3} ) {
73 fnc !=
"StatusCode::check()" ) {
75 scs->regFnc( fnc, lib );
Definition of the MsgStream class used to transmit messages.
void check()
Do StatusCode check.
GAUDI_API bool getStackLevel(void *addresses, void *&addr, std::string &fnc, std::string &lib)
The category assigned to a StatusCode.
static bool s_proc
"previous" element in the linked list
constexpr static const auto RECOVERABLE
constexpr static const auto SUCCESS
virtual const char * name() const =0
Name of the category.
class MergingTransformer< Out(const vector_of_const_< In > void
static GAUDI_API bool checkingEnabled()
GAUDI_API int backTrace(void **addresses, const int depth)
StatusCode service(const Gaudi::Utils::TypeNameString &name, T *&svc, bool createIf=true)
Templated method to access a service by name.
GAUDI_API ISvcLocator * svcLocator()
#define STATUSCODE_ENUM_IMPL(...)
Assign a category to the StatusCode enum declared with STATUSCODE_ENUM_DECL( ENUM ) ...
This class is used for returning status codes from appropriate routines.
The IMessage is the interface implemented by the message service.
static bool s_checking
Global flag to control if StatusCode need to be checked.
T uncaught_exception(T...args)
constexpr static const auto FAILURE
static GAUDI_API void disableChecking()
virtual std::string message(code_t code) const
Description for code within this category.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
unsigned long code_t
type of StatusCode value