The Gaudi Framework  v30r3 (a5ef0a68)
IDataProviderSvc.cpp
Go to the documentation of this file.
3 
4 namespace
5 {
6  struct IDataProviderSvcCategory : StatusCode::Category {
7  const char* name() const override { return "IDataProviderSvc"; }
8 
9  bool isRecoverable( StatusCode::code_t ) const override { return false; }
10 
11  std::string message( StatusCode::code_t code ) const override
12  {
13  switch ( static_cast<IDataProviderSvc::Status>( code ) ) {
15  return "DOUBL_OBJ_PATH";
17  return "INVALID_OBJ_PATH";
19  return "INVALID_ROOT";
21  return "INVALID_OBJECT";
23  return "INVALID_PARENT";
25  return "OBJ_NOT_LOADED";
27  return "NO_DATA_LOADER";
29  return "INVALID_OBJ_ADDR";
31  return "DIR_NOT_EMPTY";
33  return "NO_MORE_LEVELS";
35  return "NO_ACCESS";
36  default:
37  return StatusCode::default_category().message( code );
38  }
39  }
40  };
41 }
42 
43 STATUSCODE_ENUM_IMPL( IDataProviderSvc::Status, IDataProviderSvcCategory )
The path for this objects is already in use.
The category assigned to a StatusCode.
Definition: StatusCode.h:65
virtual const char * name() const =0
Name of the category.
Status
Status code definitions.
Invalid root path object cannot be retrieved or stored.
STL class.
virtual bool isRecoverable(code_t code) const
Is code considered recoverable ?
Definition: StatusCode.h:80
Sorry, the requested object is not loaded.
#define STATUSCODE_ENUM_IMPL(...)
Assign a category to the StatusCode enum declared with STATUSCODE_ENUM_DECL( ENUM ) ...
Definition: StatusCode.h:267
static const Category & default_category() noexcept
Default Gaudi StatusCode category.
Definition: StatusCode.h:282
Object pointer is invalid.
Directory entry is NOT empty.
Access to the requested leaf is inhibited.
virtual std::string message(code_t code) const
Description for code within this category.
Definition: StatusCode.h:73
Invalid path from root to object request failed.
Automatic data loading had to stop: maximum depth.
Pointer to parent object is not valid.
unsigned long code_t
type of StatusCode value
Definition: StatusCode.h:54