Belle II Software development
Exception Class Reference
Inheritance diagram for Exception:
DynamicLoadException IOException DBHandlerException NSMHandlerException TimeoutException NSMNotConnectedException RCHandlerException RCHandlerFatalException

Public Member Functions

 Exception (const std::string &)
 
 Exception (const std::string &, int err)
 
virtual const char * what () const throw ()
 
int err () const
 

Protected Attributes

std::string m_comment
 
int m_err
 

Detailed Description

Definition at line 20 of file Exception.h.

Constructor & Destructor Documentation

◆ Exception() [1/3]

Exception ( )

Definition at line 12 of file Exception.cc.

13 : m_comment(""), m_err(0)
14{
15}

◆ Exception() [2/3]

Exception ( const std::string &  comment)

Definition at line 17 of file Exception.cc.

18 : m_comment(comment), m_err(0)
19{
20}

◆ Exception() [3/3]

Exception ( const std::string &  comment,
int  err 
)

Definition at line 22 of file Exception.cc.

24 : m_comment(comment), m_err(err)
25{
26}

◆ ~Exception()

virtual ~Exception ( )
throw (
)
inlinevirtual

Definition at line 29 of file Exception.h.

29{}

Member Function Documentation

◆ err()

int err ( ) const
inline

Definition at line 38 of file Exception.h.

38{ return m_err; }

◆ what()

const char * what ( ) const
throw (
)
virtual

Definition at line 31 of file Exception.cc.

33{
34 return m_comment.c_str();
35}

Member Data Documentation

◆ m_comment

std::string m_comment
protected

Definition at line 41 of file Exception.h.

◆ m_err

int m_err
protected

Definition at line 42 of file Exception.h.


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