register

lsst.pex.exceptions.register(cls)[source]

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