cepgen is hosted by Hepforge, IPPP Durham
CepGen N/A
Central exclusive processes event generator
Exception.h File Reference
+ Include dependency graph for Exception.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Exception
 Standard exception message. More...
 

Namespaces

namespace  cepgen
 Common namespace for this Monte Carlo generator.
 

Macros

#define CG_ERROR(mod)   cepgen::Exception(mod, __FUNC__, cepgen::Exception::Type::error, __FILE__, __LINE__)
 
#define CG_FATAL(mod)   cepgen::Exception(mod, __FUNC__, cepgen::Exception::Type::fatal, __FILE__, __LINE__)
 
#define CG_ASSERT(assertion)
 

Macro Definition Documentation

◆ CG_ASSERT

#define CG_ASSERT ( assertion)
Value:
if (!(assertion)) \
throw CG_FATAL("Assertion") << "Assertion '" << #assertion << "' failed.";
#define CG_FATAL(mod)
Definition Exception.h:60

Definition at line 61 of file Exception.h.

◆ CG_ERROR

#define CG_ERROR ( mod)    cepgen::Exception(mod, __FUNC__, cepgen::Exception::Type::error, __FILE__, __LINE__)

Definition at line 59 of file Exception.h.

◆ CG_FATAL

#define CG_FATAL ( mod)    cepgen::Exception(mod, __FUNC__, cepgen::Exception::Type::fatal, __FILE__, __LINE__)

Definition at line 60 of file Exception.h.