fastjet 2.4.5
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes
fastjet::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

fastjet::Error::Error ( ) [inline]

Definition at line 46 of file Error.hh.

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

Definition at line 47 of file Error.hh.

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

Member Function Documentation

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

Definition at line 52 of file Error.hh.

{return _message;};
static void fastjet::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 fastjet::Error::_message [private]

Definition at line 55 of file Error.hh.

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

Definition at line 59 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 Defines