lsst.pex.exceptions

The lsst.pex.exceptions module provides custom exceptions for the LSST Science Pipelines.

Contributing

lsst.pex.exceptions is developed at https://github.com/lsst/pex_exceptions. You can find Jira issues for this module under the pex_exceptions component.

Python API reference

lsst.pex.exceptions Package

Functions

declare(module, exception_name, base, ...)

Declare a new exception.

register(cls)

A Python decorator that adds a Python exception wrapper to the registry that maps C++ Exceptions to their Python wrapper classes.

translate(cpp)

Translate a C++ Exception instance to Python and return it.

Classes

DomainError(arg, *args, **kwds)

Exception(arg, *args, **kwds)

The base class for Python-wrapped LSST C++ exceptions.

ExceptionMeta

A metaclass for custom exception wrappers, which adds lookup of class attributes by delegating to the Swig-generated wrapper.

InvalidParameterError(arg, *args, **kwds)

IoError(arg, *args, **kwds)

LengthError(arg, *args, **kwds)

LogicError(arg, *args, **kwds)

NotFoundError(arg, *args, **kwds)

OutOfRangeError(arg, *args, **kwds)

OverflowError(arg, *args, **kwds)

RangeError(arg, *args, **kwds)

RuntimeError(arg, *args, **kwds)

Tracepoint

TypeError(arg, *args, **kwds)

UnderflowError(arg, *args, **kwds)

Class Inheritance Diagram

Inheritance diagram of lsst.pex.exceptions.wrappers.DomainError, lsst.pex.exceptions.Exception, lsst.pex.exceptions.wrappers.ExceptionMeta, lsst.pex.exceptions.wrappers.InvalidParameterError, lsst.pex.exceptions.wrappers.IoError, lsst.pex.exceptions.wrappers.LengthError, lsst.pex.exceptions.wrappers.LogicError, lsst.pex.exceptions.wrappers.NotFoundError, lsst.pex.exceptions.wrappers.OutOfRangeError, lsst.pex.exceptions.wrappers.OverflowError, lsst.pex.exceptions.wrappers.RangeError, lsst.pex.exceptions.wrappers.RuntimeError, lsst.pex.exceptions.exceptions.Tracepoint, lsst.pex.exceptions.wrappers.TypeError, lsst.pex.exceptions.wrappers.UnderflowError