![]() |
PandaRoot
|
Exception class for error handling in GENFIT (provides storage for diagnostic information) More...
#include <Exception.h>
Public Member Functions | |
| Exception (std::string excString, int line, std::string file) | |
| Initializing constructor. More... | |
| virtual | ~Exception () throw () |
| void | setFatal (bool b=true) |
| Set fatal flag. More... | |
| bool | isFatal () |
| Get fatal flag. More... | |
| void | setNumbers (std::string, const std::vector< double > &) |
| Set list of numbers with description. More... | |
| void | setMatrices (std::string, const std::vector< TMatrixD > &) |
| Set list of matrices with description. More... | |
| void | info () |
| Print information in the exception object. More... | |
| virtual const char * | what () const throw () |
| Standard error message handling for exceptions. use like "std::cerr << e.what();". More... | |
| std::string | getExcString () |
Static Public Member Functions | |
| static void | quiet (bool b=true) |
| "std::cerr << e.what();" will not write anything. More... | |
Exception class for error handling in GENFIT (provides storage for diagnostic information)
This is the class that is used for all error handling in GENFIT. It is a utility class that allows to store numbers and matrices together with an error string. The exception class can then be thrown when an error is detected and the C++ exception handling facilities can be used to catch and process the exception.
Definition at line 47 of file Exception.h.
| genfit::Exception::Exception | ( | std::string | excString, |
| int | line, | ||
| std::string | file | ||
| ) |
Initializing constructor.
| excString | error message. |
| line | line at which the exception is created. Can be set through LINE macro. |
| file | sourcefile in which the exception is created. Can be set through FILE macro. |
|
virtual | |||||||||||||
|
inline |
Definition at line 74 of file Exception.h.
| void genfit::Exception::info | ( | ) |
Print information in the exception object.
Referenced by isFatal().
|
inline |
Get fatal flag.
Definition at line 62 of file Exception.h.
References info(), setMatrices(), setNumbers(), and what().
|
inlinestatic |
"std::cerr << e.what();" will not write anything.
Definition at line 77 of file Exception.h.
|
inline |
Set fatal flag.
Definition at line 60 of file Exception.h.
Referenced by genfit::MeasurementFactory< genfit::AbsMeasurement >::addProducer(), genfit::MeasurementFactory< genfit::AbsMeasurement >::createOne(), PndFtsRecoHitProducer2< hit_T, measurement_T >::produce(), PndSttRecoHitProducer2< hit_T, measurement_T >::produce(), and genfit::MeasurementProducer< hit_T, measurement_T >::produce().
| void genfit::Exception::setMatrices | ( | std::string | , |
| const std::vector< TMatrixD > & | |||
| ) |
Set list of matrices with description.
Referenced by isFatal().
| void genfit::Exception::setNumbers | ( | std::string | , |
| const std::vector< double > & | |||
| ) |
Set list of numbers with description.
Referenced by genfit::MeasurementFactory< genfit::AbsMeasurement >::addProducer(), genfit::MeasurementFactory< genfit::AbsMeasurement >::createOne(), and isFatal().
|
virtual | |||||||||||||
Standard error message handling for exceptions. use like "std::cerr << e.what();".
Referenced by isFatal().