Hammer  1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Exceptions.hh File Reference

Hammer exception definitions. More...

#include <exception>
#include <stdexcept>
#include <string>
+ Include dependency graph for Exceptions.hh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Hammer::Error
 Generic error class. More...
 
class  Hammer::IndexLabelError
 Invalid index label error class. More...
 
class  Hammer::RangeError
 Out-of-range error class. More...
 
class  Hammer::PhaseSpaceError
 Invalid phase space point error class. More...
 
class  Hammer::InitializationError
 Initialization error class. More...
 

Namespaces

 Hammer
 The Hammer namespace contains the library code.
 
 Assert
 

Macros

#define ASSERT_MSG(x, msg)
 
#define ASSERT(x)
 

Functions

void Assert::HandleAssert (const char *message, const char *condition, const char *fileName, long lineNumber)
 

Detailed Description

Hammer exception definitions.

Definition in file Exceptions.hh.

Macro Definition Documentation

#define ASSERT (   x)
Value:
do{ \
if(!(x)) {\
Assert::HandleAssert("Assertion!", #x, __FILE__, __LINE__); \
abort(); \
}\
} while(0)
void HandleAssert(const char *message, const char *condition, const char *fileName, long lineNumber)
Definition: Errors.cc:20

Definition at line 95 of file Exceptions.hh.

#define ASSERT_MSG (   x,
  msg 
)
Value:
do{ \
if(!(x)) {\
Assert::HandleAssert(msg, #x, __FILE__, __LINE__); \
abort(); \
}\
} while(0)
void HandleAssert(const char *message, const char *condition, const char *fileName, long lineNumber)
Definition: Errors.cc:20

Definition at line 88 of file Exceptions.hh.