DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
ExceptionBase.hh File Reference
#include <exception>
#include <string.h>
#include <string>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <execinfo.h>
#include <cxxabi.h>
Include dependency graph for ExceptionBase.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BUException::exBase
 

Namespaces

namespace  BUException
 

Macros

#define ExceptionClassGenerator(ClassName, ClassDescription)
 

Macro Definition Documentation

◆ ExceptionClassGenerator

#define ExceptionClassGenerator ( ClassName,
ClassDescription )
Value:
class ClassName : public BUException::exBase { \
public: \
ClassName() throw() {Init();} \
ClassName(const ClassName & rh) throw() : \
BUException::exBase(rh) {Init();Copy(rh);} \
ClassName & operator=(const ClassName & rh) throw() \
{Init();Copy(rh);return *this;} \
~ClassName() throw() {} \
const char * what() const throw() {return whatname;} \
private: \
void Init() \
{ \
strcpy(whatname,ClassDescription); \
} \
char whatname[sizeof(ClassDescription)]; \
};

Definition at line 28 of file ExceptionBase.hh.

28#define ExceptionClassGenerator( ClassName , ClassDescription ) \
29 class ClassName : public BUException::exBase { \
30 public: \
31 ClassName() throw() {Init();} \
32 ClassName(const ClassName & rh) throw() : \
33 BUException::exBase(rh) {Init();Copy(rh);} \
34 ClassName & operator=(const ClassName & rh) throw() \
35 {Init();Copy(rh);return *this;} \
36 ~ClassName() throw() {} \
37 const char * what() const throw() {return whatname;} \
38 private: \
39 void Init() \
40 { \
41 strcpy(whatname,ClassDescription); \
42 } \
43 char whatname[sizeof(ClassDescription)]; \
44 };