Namespace lsst::pex::exceptions::python¶
-
namespace
python Functions
-
template<typename
T, typenameE= lsst::pex::exceptions::Exception>
pybind11::class_<T, E>declareException(pybind11::module &mod, const std::string &name, const std::string &base) Helper function for pybind11, used to define new types of exceptions.
While this function creates the class wrapper, the user is still responsible for adding all constructor and member wrappers to the returned
py::class_object.- Template Parameters
T: The C++ exception to wrap.E: The C++ base class ofT.
- Parameters
[in] mod: Module to insert the exception into.[in] name: Name of the exception in the module.[in] base: Python name of base class (from pex::exceptions).
-
template<typename