23 #ifndef genfit_Exception_h 24 #define genfit_Exception_h 56 Exception(std::string excString,
int line, std::string file);
64 void setNumbers(std::string,
const std::vector<double> &);
66 void setMatrices(std::string,
const std::vector<TMatrixD> &);
72 virtual const char *
what()
const throw();
77 static void quiet(
bool b =
true) { quiet_ = b; }
82 std::string excString_;
86 std::string errorMessage_;
88 std::string numbersLabel_;
89 std::string matricesLabel_;
90 std::vector<double> numbers_;
91 std::vector<TMatrixD> matrices_;
101 #endif // genfit_Exception_h static void quiet(bool b=true)
"std::cerr << e.what();" will not write anything.
void setMatrices(std::string, const std::vector< TMatrixD > &)
Set list of matrices with description.
void setNumbers(std::string, const std::vector< double > &)
Set list of numbers with description.
void info()
Print information in the exception object.
bool isFatal()
Get fatal flag.
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
virtual const char * what() const
Standard error message handling for exceptions. use like "std::cerr << e.what();".
void setFatal(bool b=true)
Set fatal flag.
std::string getExcString()
Exception(std::string excString, int line, std::string file)
Initializing constructor.