Belle II Software development
RCHandlerException Class Reference
Inheritance diagram for RCHandlerException:
NSMHandlerException IOException Exception RCHandlerFatalException

Public Member Functions

 RCHandlerException (const std::string &comment="")
 
 RCHandlerException (const char *comment,...)
 
virtual const char * what () const throw ()
 
int err () const
 

Protected Attributes

std::string m_comment
 
int m_err
 

Detailed Description

Definition at line 19 of file RCHandlerException.h.

Constructor & Destructor Documentation

◆ RCHandlerException() [1/2]

RCHandlerException ( const std::string &  comment = "")

Definition at line 15 of file RCHandlerException.cc.

16{
17 m_comment = comment;
18}

◆ RCHandlerException() [2/2]

RCHandlerException ( const char *  comment,
  ... 
)

Definition at line 20 of file RCHandlerException.cc.

21{
22 va_list ap;
23 char ss[1024 * 100];
24 va_start(ap, format);
25 vsprintf(ss, format, ap);
26 va_end(ap);
27 m_comment = ss;
28}

◆ ~RCHandlerException()

virtual ~RCHandlerException ( )
throw (
)
inlinevirtual

Definition at line 27 of file RCHandlerException.h.

27{}

Member Function Documentation

◆ err()

int err ( ) const
inlineinherited

Definition at line 38 of file Exception.h.

38{ return m_err; }

◆ what()

const char * what ( ) const
throw (
)
virtualinherited

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
protectedinherited

Definition at line 41 of file Exception.h.

◆ m_err

int m_err
protectedinherited

Definition at line 42 of file Exception.h.


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