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

Public Member Functions

 NSMHandlerException (const std::string &format,...)
 
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 NSMHandlerException.h.

Constructor & Destructor Documentation

◆ NSMHandlerException() [1/2]

NSMHandlerException ( const std::string &  format,
  ... 
)

Definition at line 15 of file NSMHandlerException.cc.

16{
17 va_list ap;
18 char ss[1024 * 100];
19 va_start(ap, format);
20 vsnprintf(ss, sizeof(ss), format.c_str(), ap);
21 va_end(ap);
22 m_comment = ss;
23}

◆ NSMHandlerException() [2/2]

NSMHandlerException ( )
inline

Definition at line 23 of file NSMHandlerException.h.

23{}

◆ ~NSMHandlerException()

~NSMHandlerException ( )
throw (
)
inline

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