Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
Macros | Enumerations | Functions
mrtError.h File Reference
#include <string>
#include <iostream>
#include <sstream>
#include <csignal>

Go to the source code of this file.

Macros

#define CallHEPError(error, spec)
 
#define HEPAssert(condition, error, spec)   if (not (condition)) CallHEPError(error, spec)\
 

Enumerations

enum  Type {
  AssertionError,
  AttributeError,
  EOFError,
  FloatingPointError,
  GeneratorExit,
  ImportError,
  IndexError,
  KeyError,
  KeyboardInterrupt,
  MemoryError,
  ModelBuildingError,
  NameError,
  NotImplementedError,
  OSError,
  OverflowError,
  PhysicsError,
  ReferenceError,
  RuntimeError,
  StopIteration,
  SyntaxError,
  IndentationError,
  TabError,
  SystemError,
  SystemExit,
  TypeError,
  UnboundLocalError,
  UnicodeError,
  UnicodeEncodeError,
  UnicodeDecodeError,
  UnicodeTranslateError,
  ValueError,
  ZeroDivisionError
}
 

Functions

std::ostream & mty::error::operator<< (std::ostream &fout, mty::error::Type error)
 
std::ostream & printChain (std::ostream &fout)
 
template<typename T , typename... G>
std::ostream & printChain (std::ostream &fout, T firstSpec, G... followingSpec)
 

Detailed Description

Author
Grégoire Uhlrich
Version
1.3
Date
2020-11-05

Macro Definition Documentation

◆ CallHEPError

#define CallHEPError (   error,
  spec 
)
Value:
{\
std::cerr << error << " in function " << __func__ << "() (file "\
<< __FILE__ << " l." << __LINE__ << "): " << spec << '\n';\
throw error;\
}\