The Gaudi Framework  v30r3 (a5ef0a68)
IConversionSvc.cpp
Go to the documentation of this file.
3 
4 namespace
5 {
6  struct IConvSvcCategory : StatusCode::Category {
7  const char* name() const override { return "IConversionSvc"; }
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<IConversionSvc::Status>( code ) ) {
15  return "INVALID_ADDRESS";
17  return "INVALID_OBJECT";
19  return "NO_MEMORY";
21  return "BAD_STORAGE_TYPE";
23  return "NO_SOURCE_OBJECT";
25  return "NO_CONVERTER";
26  default:
27  return StatusCode::default_category().message( code );
28  }
29  }
30  };
31 }
32 
The category assigned to a StatusCode.
Definition: StatusCode.h:65
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:80
#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
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:73
Status
Status code definitions.
unsigned long code_t
type of StatusCode value
Definition: StatusCode.h:54