DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Protected Attributes
dabc::Exception Class Reference

DABC exception. More...

#include <dabc/Exception.h>

Inheritance diagram for dabc::Exception:

Public Member Functions

 Exception () throw ()
 
 Exception (const std::string &info, const std::string &item="") throw ()
 
 Exception (ExceptionKind _kind, const std::string &info, const std::string &item) throw ()
 
bool IsBuffer () const
 
bool IsCommand () const
 
bool IsConnect () const
 
bool IsDisconnect () const
 
bool IsHierarchy () const
 
bool IsInput () const
 
bool IsObject () const
 
bool IsOutput () const
 
bool IsPointer () const
 
bool IsPool () const
 
bool IsStop () const
 
bool IsTimeout () const
 
const std::string ItemName () const throw ()
 
ExceptionKind kind () const
 
virtual const char * what () const throw ()
 
virtual ~Exception () throw ()
 

Protected Attributes

std::string fItem
 
ExceptionKind fKind
 
std::string fWhat
 

Detailed Description

DABC exception.

Generic exception for all situation Not trying to duplicate classes hierarchy, just put exception name and source item name into central class. For convenience will provide several most common names like IsStop(), IsTimeout() and so on

Definition at line 57 of file Exception.h.

Constructor & Destructor Documentation

◆ Exception() [1/3]

dabc::Exception::Exception ( )
throw (
)

Definition at line 20 of file Exception.cxx.

◆ Exception() [2/3]

dabc::Exception::Exception ( const std::string &  info,
const std::string &  item = "" 
)
throw (
)

Definition at line 29 of file Exception.cxx.

◆ Exception() [3/3]

dabc::Exception::Exception ( ExceptionKind  _kind,
const std::string &  info,
const std::string &  item 
)
throw (
)

Definition at line 39 of file Exception.cxx.

◆ ~Exception()

dabc::Exception::~Exception ( )
throw (
)
virtual

Definition at line 49 of file Exception.cxx.

Member Function Documentation

◆ what()

const char * dabc::Exception::what ( ) const
throw (
)
virtual

Definition at line 53 of file Exception.cxx.

◆ kind()

ExceptionKind dabc::Exception::kind ( ) const
inline

Definition at line 73 of file Exception.h.

◆ ItemName()

const std::string dabc::Exception::ItemName ( ) const
throw (
)
inline

Definition at line 74 of file Exception.h.

◆ IsStop()

bool dabc::Exception::IsStop ( ) const
inline

Definition at line 76 of file Exception.h.

◆ IsTimeout()

bool dabc::Exception::IsTimeout ( ) const
inline

Definition at line 77 of file Exception.h.

◆ IsInput()

bool dabc::Exception::IsInput ( ) const
inline

Definition at line 78 of file Exception.h.

◆ IsOutput()

bool dabc::Exception::IsOutput ( ) const
inline

Definition at line 79 of file Exception.h.

◆ IsConnect()

bool dabc::Exception::IsConnect ( ) const
inline

Definition at line 80 of file Exception.h.

◆ IsDisconnect()

bool dabc::Exception::IsDisconnect ( ) const
inline

Definition at line 81 of file Exception.h.

◆ IsCommand()

bool dabc::Exception::IsCommand ( ) const
inline

Definition at line 82 of file Exception.h.

◆ IsBuffer()

bool dabc::Exception::IsBuffer ( ) const
inline

Definition at line 83 of file Exception.h.

◆ IsPool()

bool dabc::Exception::IsPool ( ) const
inline

Definition at line 84 of file Exception.h.

◆ IsPointer()

bool dabc::Exception::IsPointer ( ) const
inline

Definition at line 85 of file Exception.h.

◆ IsObject()

bool dabc::Exception::IsObject ( ) const
inline

Definition at line 86 of file Exception.h.

◆ IsHierarchy()

bool dabc::Exception::IsHierarchy ( ) const
inline

Definition at line 87 of file Exception.h.

Field Documentation

◆ fKind

ExceptionKind dabc::Exception::fKind
protected

Definition at line 60 of file Exception.h.

◆ fWhat

std::string dabc::Exception::fWhat
protected

Definition at line 61 of file Exception.h.

◆ fItem

std::string dabc::Exception::fItem
protected

Definition at line 62 of file Exception.h.


The documentation for this class was generated from the following files: