Version: 9.12.0
YACS::Exception Class Reference

#include <Exception.hxx>

Inheritance diagram for YACS::Exception:
Collaboration diagram for YACS::Exception:

Public Member Functions

 Exception (const std::string &what, int errNumber=0)
 
const char * what (void) const noexcept
 
virtual ~Exception () noexcept
 

Public Attributes

int errNumber
 

Protected Attributes

std::string _what
 

Detailed Description

Definition at line 30 of file Exception.hxx.

Constructor & Destructor Documentation

◆ Exception()

Exception::Exception ( const std::string &  what,
int  errNumber = 0 
)

Definition at line 31 of file Exception.cxx.

32 {
33 #ifdef _DEVDEBUG_
34  void *array[20];
35  size_t size=10;
36  char **strings;
37  size_t i;
38 
39  size = backtrace (array, 10);
40  strings = backtrace_symbols (array, size);
41 
42  _what=_what+'\n';
43  for (i = 0; i < size; i++)
44  _what=_what+strings[i]+'\n';
45 
46  free (strings);
47 #endif
48 }
const char * what(void) const noexcept
Definition: Exception.cxx:50
std::string _what
Definition: Exception.hxx:33

References _what, and yacsorb.CORBAEngineTest::i.

◆ ~Exception()

Exception::~Exception ( )
virtualnoexcept

Definition at line 55 of file Exception.cxx.

56 {
57 }

Member Function Documentation

◆ what()

Member Data Documentation

◆ _what

◆ errNumber

int YACS::Exception::errNumber

Definition at line 38 of file Exception.hxx.


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