EventAnalysis  1.0.0
Classes | Namespaces | Macros | Functions
RetrievalExceptions.h File Reference
#include "core/Exception.h"
#include "core/RetrievalResult.h"

Go to the source code of this file.

Classes

class  EA::Retrieval::Exception
 Base class for retrieval exceptions. More...
 
class  EA::Retrieval::NotAvailable
 Exception for known object but not available at the moment. More...
 
class  EA::Retrieval::BadClass
 Exception for object found but class does not match with requested. More...
 
class  EA::Retrieval::NotFound
 Exception for unknown object. More...
 
class  EA::Retrieval::Error
 Exception for generic error in object retrieve procedure. More...
 

Namespaces

 EA
 IncludeFileExc.h IncludeFileExc class declaration.
 
 EA::Retrieval
 

Macros

#define THROW_RETRIEVAL_EXC(retRes, objName)
 

Functions

static std::string EA::Retrieval::ExcName (const Exception &exc)
 

Detailed Description

Exception classes for object retrieval operations.

Macro Definition Documentation

◆ THROW_RETRIEVAL_EXC

#define THROW_RETRIEVAL_EXC (   retRes,
  objName 
)
Value:
switch (retRes) { \
case RetrievalResult::NOTAVAILABLE: \
throw Retrieval::NotAvailable("Object \"" + objName + "\" is not available"); \
break; \
case RetrievalResult::BADCLASS: \
throw Retrieval::BadClass("Bad class for object \"" + objName + "\""); \
break; \
case RetrievalResult::NOTFOUND: \
throw Retrieval::NotFound("Object \"" + objName + "\" is not found"); \
break; \
case RetrievalResult::ERROR: \
throw Retrieval::Error("Error while retrieving object \"" + objName + "\""); \
break; \
default: \
throw EA::Exception("Invalid RetrievalResult in THROW_RETRIEVAL_EXC"); \
}
Definition: Exception.h:24