Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
IConversionSvc.cpp
Go to the documentation of this file.
3 
4 namespace {
5  struct IConvSvcCategory : StatusCode::Category {
6  const char* name() const override { return "IConversionSvc"; }
7 
8  bool isRecoverable( StatusCode::code_t ) const override { return false; }
9 
10  std::string message( StatusCode::code_t code ) const override {
11  switch ( static_cast<IConversionSvc::Status>( code ) ) {
13  return "INVALID_ADDRESS";
15  return "INVALID_OBJECT";
17  return "NO_MEMORY";
19  return "BAD_STORAGE_TYPE";
21  return "NO_SOURCE_OBJECT";
23  return "NO_CONVERTER";
24  default:
25  return StatusCode::default_category().message( code );
26  }
27  }
28  };
29 } // namespace
30 
The category assigned to a StatusCode.
Definition: StatusCode.h:63
Invalid address information.
No more memory available.
virtual const char * name() const =0
Name of the category.
Object to be converted is invalid.
STL class.
virtual bool isRecoverable(code_t code) const
Is code considered recoverable ?
Definition: StatusCode.h:78
#define STATUSCODE_ENUM_IMPL(...)
Assign a category to the StatusCode enum declared with STATUSCODE_ENUM_DECL( ENUM ) ...
Definition: StatusCode.h:248
static const Category & default_category() noexcept
Default Gaudi StatusCode category.
Definition: StatusCode.h:263
No proper converter is available to the service.
Error retrieving source data from source store.
virtual std::string message(code_t code) const
Description for code within this category.
Definition: StatusCode.h:71
Status
Status code definitions.
unsigned long code_t
type of StatusCode value
Definition: StatusCode.h:52