23 #ifndef genfit_Exception_h
24 #define genfit_Exception_h
57 Exception(std::string excString,
int line, std::string file);
65 void setNumbers (std::string,
const std::vector<double>&);
67 void setMatrices(std::string,
const std::vector<TMatrixD>&);
73 virtual const char*
what() const noexcept;
75 std::
string getExcString(){
return excString_;}
78 static void quiet(
bool b=
true){quiet_=b;}
84 std::string excString_;
88 std::string errorMessage_;
90 std::string numbersLabel_;
91 std::string matricesLabel_;
92 std::vector<double> numbers_;
93 std::vector<TMatrixD> matrices_;
Exception class for error handling in GENFIT (provides storage for diagnostic information)
void setFatal(bool b=true)
Set fatal flag.
bool isFatal()
Get fatal flag.
virtual const char * what() const noexcept
Standard error message handling for exceptions. use like "std::cerr << e.what();".
void setMatrices(std::string, const std::vector< TMatrixD > &)
Set list of matrices with description.
Exception(std::string excString, int line, std::string file)
Initializing constructor.
static void quiet(bool b=true)
"std::cerr << e.what();" will not write anything.
void setNumbers(std::string, const std::vector< double > &)
Set list of numbers with description.
void info()
Print information in the exception object.
Defines for I/O streams used for error and debug printing.