lsst.pex.exceptions  19.0.0-4-g5a8b323+3
Classes | Functions | Variables
lsst.pex.exceptions.wrappers Namespace Reference

Classes

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

Functions

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

Variables

dictionary registry = {}
 

Function Documentation

◆ declare()

def lsst.pex.exceptions.wrappers.declare (   module,
  exception_name,
  base,
  wrapped_class 
)
Declare a new exception.

Definition at line 153 of file wrappers.py.

◆ register()

def lsst.pex.exceptions.wrappers.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()

def lsst.pex.exceptions.wrappers.translate (   cpp)
Translate a C++ Exception instance to Python and return it.

Definition at line 144 of file wrappers.py.

Variable Documentation

◆ registry

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

Definition at line 33 of file wrappers.py.