cepgen is hosted by Hepforge, IPPP Durham
CepGen 1.2.5
Central exclusive processes event generator
Loading...
Searching...
No Matches
Exception.h File Reference
+ Include dependency graph for Exception.h:

Go to the source code of this file.

Classes

class  Exception
 

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:61

Definition at line 62 of file Exception.h.

◆ CG_ERROR

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

Definition at line 60 of file Exception.h.

◆ CG_FATAL

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

Definition at line 61 of file Exception.h.