24 #ifndef LSST_MEAS_BASE_exceptions_h_INCLUDED 25 #define LSST_MEAS_BASE_exceptions_h_INCLUDED 52 : pex::
exceptions::RuntimeError(message), _flagBit(flagBit) {}
61 virtual char const*
getType(
void)
const throw() {
return "lsst::meas::base::MeasurementError *"; };
88 #endif // !LSST_MEAS_BASE_exceptions_h_INCLUDED Exception to be thrown when a measurement algorithm encounters a NaN or infinite pixel.
virtual char const * getType(void) const
Return the fully-specified C++ type of a pointer to the exception.
Reports arguments outside the domain of an operation.
Provides consistent interface for LSST exceptions.
Exception to be thrown when a measurement algorithm experiences a known failure mode.
Exception to be thrown when a measurement algorithm experiences a fatal error.
#define LSST_EARGS_UNTYPED
The initial arguments to the base class constructor for new subclasses.
MeasurementError(std::string const &message, std::size_t flagBit)
Constructor; should only be invoked from Python macro.
#define LSST_EARGS_TYPED
The initial arguments required for new exception subclasses.
A base class for image defects.
virtual lsst::pex::exceptions::Exception * clone(void) const
Return a copy of the exception as an Exception pointer.
std::size_t getFlagBit() const
Return the flag bit associated with the error.
#define LSST_EXCEPTION_TYPE(t, b, c)
Macro used to define new types of exceptions without additional data.
MeasurementError(LSST_EARGS_TYPED, std::size_t flagBit)
Constructor; should only be invoked by the LSST_EXCEPT macro (see class docs)
Reports errors that are due to events beyond the control of the program.