1 #ifndef __FASTJET_ERROR_HH__
2 #define __FASTJET_ERROR_HH__
34 #include "fastjet/internal/base.hh"
36 FASTJET_BEGIN_NAMESPACE
51 Error(
const std::string & message);
57 std::string
message()
const {
return _message;}
75 static bool _print_errors;
76 static bool _print_backtrace;
77 static std::ostream * _default_ostr;
83 #endif // __FASTJET_ERROR_HH__
virtual ~Error()
virtual dummy dtor
static void set_print_errors(bool print_errors)
controls whether the error message (and the backtrace, if its printing is enabled) is printed out or ...
Error()
default constructors
base class corresponding to errors that can be thrown by FastJet
static void set_default_stream(std::ostream *ostr)
sets the default output stream for all errors; by default cerr; if it's null then error output is sup...
std::string message() const
the error message
static void set_print_backtrace(bool enabled)
controls whether the backtrace is printed out with the error message or not.