Function lsst::pex::exceptions::LSST_EXCEPTION_TYPE(UnderflowError, RuntimeError, lsst::pex::exceptions::UnderflowError)

Function Documentation

lsst::pex::exceptions::DomainError lsst::pex::exceptions::LengthError lsst::pex::exceptions::RuntimeError lsst::pex::exceptions::OverflowError lsst::pex::exceptions::LSST_EXCEPTION_TYPE(UnderflowError, RuntimeError, lsst::pex::exceptions::UnderflowError)

Reports when the result of an arithmetic operation is too small for the destination type.

In Python, this exception inherits from builtins.ArithmeticError.

This exception may represent lookup failures in classes that resemble C++ maps or Python dictionaries, but it may also be used when the relationship between an identifier and a resource is more abstract.

See

std::underflow_error Reports attempts to access elements using an invalid key.

In Python, this exception inherits from builtins.LookupError.

See

OutOfRangeError

Note

pybind11 wrappers should manually translate this exception to py::key_error when appropriate. Some Python language constructs check for exceptions that are exactly KeyError rather than a sub- or superclass.