lsst.pex.exceptions g786e29fd12+76ce5f0d11
Loading...
Searching...
No Matches
lsst.pex.exceptions.wrappers Namespace Reference

Classes

class  ExceptionMeta
class  Exception
class  LogicError
class  DomainError
class  InvalidParameterError
class  LengthError
class  OutOfRangeError
class  RuntimeError
class  RangeError
class  OverflowError
class  UnderflowError
class  NotFoundError
class  IoError
class  TypeError

Functions

 register (cls)
 translate (cpp)
 declare (module, exception_name, base, wrapped_class)

Variables

dict registry = {}

Function Documentation

◆ declare()

declare ( module,
exception_name,
base,
wrapped_class )
Declare a new exception.

Definition at line 153 of file wrappers.py.

◆ register()

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

Definition at line 36 of file wrappers.py.

◆ translate()

translate ( cpp)
Translate a C++ Exception instance to Python and return it.

Definition at line 144 of file wrappers.py.

Variable Documentation

◆ registry

dict lsst.pex.exceptions.wrappers.registry = {}

Definition at line 33 of file wrappers.py.