lsst.meas.base gdd7ff8183c+acf29d08ff
|
Exception to be thrown when a measurement algorithm experiences a known failure mode. More...
#include <exceptions.h>
Public Member Functions | |
MeasurementError (std::string const &message, std::size_t flagBit) | |
Constructor; should only be invoked from Python macro. More... | |
MeasurementError (LSST_EARGS_TYPED, std::size_t flagBit) | |
Constructor; should only be invoked by the LSST_EXCEPT macro (see class docs) More... | |
std::size_t | getFlagBit () const |
Return the flag bit associated with the error. More... | |
virtual char const * | getType (void) const throw () |
virtual lsst::pex::exceptions::Exception * | clone (void) const |
void | addMessage (char const *file, int line, char const *func, std::string const &message) |
Traceback const & | getTraceback (void) const noexcept |
virtual std::ostream & | addToStream (std::ostream &stream) const |
virtual char const * | what (void) const noexcept |
T | what (T... args) |
Exception to be thrown when a measurement algorithm experiences a known failure mode.
In addition to the usual message, MeasurementError must be constructed with the bit of the algorithm-specific flag that indicates the known failure mode. This allows the measurement framework to set that flag upon failure. Typically, this flag bit is also used to look up the message from the algorithm classes FlagDefinition list; the common pattern is:
Definition at line 48 of file exceptions.h.
|
inline |
Constructor; should only be invoked from Python macro.
Definition at line 51 of file exceptions.h.
|
inline |
Constructor; should only be invoked by the LSST_EXCEPT macro (see class docs)
Definition at line 55 of file exceptions.h.
|
inlinevirtual |
Reimplemented from lsst::pex::exceptions::RuntimeError.
Definition at line 63 of file exceptions.h.
|
inline |
Return the flag bit associated with the error.
Definition at line 59 of file exceptions.h.
|
inlinevirtual |
Reimplemented from lsst::pex::exceptions::RuntimeError.
Definition at line 61 of file exceptions.h.