9 #include "HepMC/Common.h"
18 #define ERROR(MESSAGE) if ( Setup::print_errors() ) { std::cerr << "ERROR::" << MESSAGE << std::endl; }
21 #define WARNING(MESSAGE) if ( Setup::print_warnings() ) { std::cout << "WARNING::" << MESSAGE << std::endl; }
24 #ifndef HEPMC_RELEASE_VERSION
27 #define DEBUG(LEVEL,MESSAGE) if( Setup::debug_level()>=(LEVEL) ) { std::cout << "DEBUG(" << LEVEL <<")::" << MESSAGE << std::endl; }
29 #define DEBUG_CODE_BLOCK( x ) x
34 #define DEBUG_CODE_BLOCK( x )
49 Exception(
const std::string& msg) : std::runtime_error(msg) {}
Exception related to weight lookups, setting, and index consistency.
WeightError(const std::string &msg)
Default constructor.
Exception(const std::string &msg)
Default constructor.