27 excString_(excString), line_(line), file_(file), fatal_(false) {
28 std::ostringstream ErrMsgStream;
29 ErrMsgStream <<
"genfit::Exception thrown with excString:"
31 <<
"in line: " <<
line_ <<
" in file: " <<
file_ << std::endl
32 <<
"with fatal flag " <<
fatal_ << std::endl;
40 const std::vector<double>& _numbers) {
46 const std::vector<TMatrixD>& _matrices) {
62 std::cout <<
"genfit::Exception Info Output" << std::endl;
63 std::cout <<
"===========================" << std::endl;
65 std::cout <<
"Numbers Label String:" << std::endl;
69 std::cout <<
"---------------------------" << std::endl;
70 std::cout <<
"Numbers:" << std::endl;
71 for(
unsigned int i=0;i<
numbers_.size(); ++i ) std::cout <<
numbers_[i] << std::endl;
74 std::cout <<
"---------------------------" << std::endl;
75 std::cout <<
"Matrices Label String:" << std::endl;
79 std::cout <<
"---------------------------" << std::endl;
80 std::cout <<
"Matrices:" << std::endl;
83 std::cout <<
"===========================" << std::endl;
void setNumbers(std::string, const std::vector< double > &)
Set list of numbers with description.
std::vector< TMatrixD > matrices_
std::string matricesLabel_
std::string errorMessage_
virtual const char * what() const
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.
std::vector< double > numbers_
std::string numbersLabel_
void info()
Print information in the exception object.