base class corresponding to errors that can be thrown by FastJet
More...
#include <fastjet/Error.hh>
|
| Error () |
| default constructors
|
|
| Error (const std::string &message) |
| ctor from an error message
|
|
virtual | ~Error () |
| virtual dummy dtor
|
|
std::string | message () const |
| the error message
|
|
std::string | description () const |
| an alternative access to the error message (more standard)
|
|
|
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 not
|
|
static void | set_print_backtrace (bool enabled) |
| controls whether the backtrace is printed out with the error message or not.
|
|
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 suppressed.
|
|
base class corresponding to errors that can be thrown by FastJet
Definition at line 52 of file Error.hh.
◆ Error() [1/2]
fastjet::Error::Error |
( |
| ) |
|
|
inline |
default constructors
Definition at line 55 of file Error.hh.
◆ Error() [2/2]
fastjet::Error::Error |
( |
const std::string & |
message | ) |
|
ctor from an error message
- Parameters
-
message | to be printed Note: in addition to the error message, one can choose to print the backtrace (showing the last few calls before the error) by using set_print_backtrace(true). The default is "false". |
Definition at line 120 of file Error.cc.
◆ ~Error()
virtual fastjet::Error::~Error |
( |
| ) |
|
|
inlinevirtual |
virtual dummy dtor
Definition at line 65 of file Error.hh.
◆ message()
std::string fastjet::Error::message |
( |
| ) |
const |
|
inline |
the error message
Definition at line 68 of file Error.hh.
◆ description()
std::string fastjet::Error::description |
( |
| ) |
const |
|
inline |
an alternative access to the error message (more standard)
Definition at line 71 of file Error.hh.
◆ set_print_errors()
static void fastjet::Error::set_print_errors |
( |
bool |
print_errors | ) |
|
|
inlinestatic |
controls whether the error message (and the backtrace, if its printing is enabled) is printed out or not
Definition at line 75 of file Error.hh.
◆ set_print_backtrace()
void fastjet::Error::set_print_backtrace |
( |
bool |
enabled | ) |
|
|
static |
controls whether the backtrace is printed out with the error message or not.
The default is "false".
Definition at line 171 of file Error.cc.
◆ set_default_stream()
static void fastjet::Error::set_default_stream |
( |
std::ostream * |
ostr | ) |
|
|
inlinestatic |
sets the default output stream for all errors; by default cerr; if it's null then error output is suppressed.
Definition at line 83 of file Error.hh.
The documentation for this class was generated from the following files: