35 #ifndef genfit_Exception_h 36 #define genfit_Exception_h 68 Exception(std::string excString,
int line, std::string file);
76 void setNumbers(std::string,
const std::vector<double> &);
78 void setMatrices(std::string,
const std::vector<TMatrixD> &);
84 virtual const char *
what()
const throw();
89 static void quiet(
bool b =
true) { quiet_ = b; }
94 std::string excString_;
98 std::string errorMessage_;
100 std::string numbersLabel_;
101 std::string matricesLabel_;
102 std::vector<double> numbers_;
103 std::vector<TMatrixD> matrices_;
113 #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.