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

Public Member Functions

 RCHandlerFatalException (const std::string &comment="")
 
 RCHandlerFatalException (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 RCHandlerFatalException.h.

Constructor & Destructor Documentation

◆ RCHandlerFatalException() [1/2]

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

Definition at line 15 of file RCHandlerFatalException.cc.

16{
17 m_comment = comment;
18}

◆ RCHandlerFatalException() [2/2]

RCHandlerFatalException ( const char *  comment,
  ... 
)

Definition at line 20 of file RCHandlerFatalException.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}

◆ ~RCHandlerFatalException()

virtual ~RCHandlerFatalException ( )
throw (
)
inlinevirtual

Definition at line 27 of file RCHandlerFatalException.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: