Function lsst::pex::exceptions::LSST_EXCEPTION_TYPE(OutOfRangeError, LogicError, lsst::pex::exceptions::OutOfRangeError)

Function Documentation

lsst::pex::exceptions::DomainError lsst::pex::exceptions::LengthError lsst::pex::exceptions::LSST_EXCEPTION_TYPE(OutOfRangeError, LogicError, lsst::pex::exceptions::OutOfRangeError)

Reports attempts to access elements outside a valid range of indices.

RuntimeError and its subclasses represent problems that cannot be easily predicted or prevented. In other words, a RuntimeError is a possible outcome of calling a function or method even in well-written programs, and should be handled at the appropriate level.

See

NotFoundError

See

std::out_of_range

Note

pybind11 wrappers should manually translate this exception to py::index_error when appropriate. Some Python language constructs check for exceptions that are exactly IndexError rather than a sub- or superclass. Reports errors that are due to events beyond the control of the program.

In Python, this exception inherits from builtins.RuntimeError.

See

LogicError

See

std::runtime_error