FastJet 3.0.2
Public Member Functions | Static Public Member Functions
fastjet::Error Class Reference

base class corresponding to errors that can be thrown by FastJet More...

#include <fastjet/Error.hh>

Inheritance diagram for fastjet::Error:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 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

Static Public Member Functions

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.

Detailed Description

base class corresponding to errors that can be thrown by FastJet

Definition at line 41 of file Error.hh.


Constructor & Destructor Documentation

fastjet::Error::Error ( const std::string &  message)

ctor from an error message

Parameters:
messageto 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 47 of file Error.cc.


Member Function Documentation

static void fastjet::Error::set_print_backtrace ( bool  enabled) [inline, static]

controls whether the backtrace is printed out with the error message or not.

The default is "false".

Definition at line 65 of file Error.hh.

static void fastjet::Error::set_default_stream ( std::ostream *  ostr) [inline, static]

sets the default output stream for all errors; by default cerr; if it's null then error output is suppressed.

Definition at line 69 of file Error.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends