register

lsst.pex.exceptions.register(cls)

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