![]() |
PandaRoot
|
Exception class for error handling in GENFIT (provides storage for diagnostic information) More...
#include <GFException.h>
Public Member Functions | |
| GFException (std::string, int, std::string) | |
| Initializing constructor. More... | |
| virtual | ~GFException () throw () |
| void | setFatal (bool b=true) |
| set fatal flag. if this is true, the fit stops for this current track repr. 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< TMatrixT< double >> &) |
| 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) |
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 44 of file GFException.h.
| GFException::GFException | ( | std::string | , |
| int | , | ||
| std::string | |||
| ) |
Initializing constructor.
| what | error message |
| line | line at which the exception is created. Can be set through LINE macro |
| file | sorcefile in which the exception is created. Can be set through FILE macro |
|
virtual | |||||||||||||
|
inline |
Definition at line 88 of file GFException.h.
| void GFException::info | ( | ) |
print information in the exception object
Referenced by isFatal().
|
inline |
get fatal flag.
Definition at line 76 of file GFException.h.
References info(), setMatrices(), setNumbers(), and what().
|
inlinestatic |
Definition at line 90 of file GFException.h.
|
inline |
set fatal flag. if this is true, the fit stops for this current track repr.
Definition at line 74 of file GFException.h.
Referenced by PndFtsRecoHitProducer< hit_T, recoHit_T >::produce(), PndSttRecoHitProducer< hit_T, recoHit_T >::produce(), and GFRecoHitProducer< hit_T, recoHit_T >::produce().
| void GFException::setMatrices | ( | std::string | , |
| const std::vector< TMatrixT< double >> & | |||
| ) |
set list of matrices with description
Referenced by isFatal().
| void GFException::setNumbers | ( | std::string | , |
| const std::vector< double > & | |||
| ) |
set list of numbers with description
Referenced by isFatal().
|
virtual | |||||||||||||
standard error message handling for exceptions. use like "std::cerr << e.what();"
Referenced by isFatal().