Belle II Software development
TimeoutException Class Reference
Inheritance diagram for TimeoutException:
IOException Exception

Public Member Functions

 TimeoutException (const std::string &comment,...)
 
 TimeoutException (int err, const std::string &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 TimeoutException.h.

Constructor & Destructor Documentation

◆ TimeoutException() [1/3]

TimeoutException ( )
inline

Definition at line 22 of file TimeoutException.h.

22{}

◆ TimeoutException() [2/3]

TimeoutException ( const std::string & comment,
... )

Definition at line 15 of file TimeoutException.cc.

16{
17 va_list ap;
18 char ss[1024 * 100];
19 // cppcheck-suppress va_start_referencePassed ; the format is taken by const reference throughout this API
20 va_start(ap, format);
21 vsnprintf(ss, sizeof(ss), format.c_str(), ap);
22 va_end(ap);
23 m_comment = ss;
24}

◆ TimeoutException() [3/3]

TimeoutException ( int err,
const std::string & comment,
... )

Definition at line 26 of file TimeoutException.cc.

27{
28 m_err = err;
29 va_list ap;
30 char ss[1024 * 100];
31 // cppcheck-suppress va_start_referencePassed ; the format is taken by const reference throughout this API
32 va_start(ap, format);
33 vsnprintf(ss, sizeof(ss), format.c_str(), ap);
34 va_end(ap);
35 m_comment = ss;
36}

◆ ~TimeoutException()

~TimeoutException ( )
throw ( )
inline

Definition at line 28 of file TimeoutException.h.

28{}

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: