fastjet 2.4.3
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes

Error Class Reference

class corresponding to errors that will be thrown by fastjet More...

#include <Error.hh>

List of all members.

Public Member Functions

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

Static Public Member Functions

static void set_print_errors (bool print_errors)

Private Attributes

std::string _message

Static Private Attributes

static bool _print_errors = true

Detailed Description

class corresponding to errors that will be thrown by fastjet

Definition at line 43 of file Error.hh.


Constructor & Destructor Documentation

Error::Error ( ) [inline]

Definition at line 46 of file Error.hh.

{;};
Error::Error ( const std::string &  message) [inline]

Definition at line 47 of file Error.hh.

References _message, _print_errors, and message().

                                   {
    _message = message; 
    if (_print_errors) std::cerr << "fastjet::Error: "<<message << std::endl;
  };

Member Function Documentation

std::string Error::message ( ) const [inline]

Definition at line 52 of file Error.hh.

References _message.

Referenced by Error().

{return _message;};
static void Error::set_print_errors ( bool  print_errors) [inline, static]

Definition at line 54 of file Error.hh.

                                                  {
    _print_errors = print_errors;};

Member Data Documentation

std::string Error::_message [private]

Definition at line 55 of file Error.hh.

Referenced by Error(), and message().

FASTJET_BEGIN_NAMESPACE bool Error::_print_errors = true [static, private]

Definition at line 59 of file Error.hh.

Referenced by Error().


The documentation for this class was generated from the following files: