10 #ifndef HEPMC3_ERRORS_H
11 #define HEPMC3_ERRORS_H
23 #define ERROR(MESSAGE) if ( Setup::print_errors() ) { std::cerr << "ERROR::" << MESSAGE << std::endl; }
26 #define WARNING(MESSAGE) if ( Setup::print_warnings() ) { std::cout << "WARNING::" << MESSAGE << std::endl; }
29 #ifndef HEPMC3_RELEASE_VERSION
32 #define DEBUG(LEVEL,MESSAGE) if( Setup::debug_level()>=(LEVEL) ) { std::cout << "DEBUG(" << LEVEL <<")::" << MESSAGE << std::endl; }
34 #define DEBUG_CODE_BLOCK( x ) x
39 #define DEBUG_CODE_BLOCK( x )
52 Exception(
const std::string& msg) : std::runtime_error(msg) {}
Exception related to weight lookups, setting, and index consistency.
Exception(const std::string &msg)
Default constructor.
WeightError(const std::string &msg)
Default constructor.