#include #include "bindings.h" namespace py = pybind11; #include "gridfire/exceptions/exceptions.h" void register_exception_bindings(const py::module &m) { py::register_exception(m, "GridFireError"); py::register_exception(m, "DebugException", m.attr("GridFireError")); py::register_exception(m, "EngineError", m.attr("GridFireError")); py::register_exception(m, "FailedToPartitionEngineError", m.attr("EngineError")); py::register_exception(m, "NetworkResizedError", m.attr("EngineError")); py::register_exception(m, "UnableToSetNetworkReactionsError", m.attr("EngineError")); py::register_exception(m, "BadCollectionError", m.attr("EngineError")); py::register_exception(m, "InvalidQSESolutionError", m.attr("EngineError")); py::register_exception(m, "BadRHSEngineError", m.attr("EngineError")); py::register_exception(m, "JacobianError", m.attr("EngineError")); py::register_exception(m, "StaleJacobianError", m.attr("JacobianError")); py::register_exception(m, "UninitializedJacobianError", m.attr("JacobianError")); py::register_exception(m, "UnknownJacobianError", m.attr("JacobianError")); py::register_exception(m, "UtilityError", m.attr("GridFireError")); py::register_exception(m, "HashingError", m.attr("UtilityError")); py::register_exception(m, "PolicyError", m.attr("GridFireError")); py::register_exception(m, "MissingBaseReactionError", m.attr("PolicyError")); py::register_exception(m, "MissingSeedSpeciesError", m.attr("PolicyError")); py::register_exception(m, "MissingKeyReactionError", m.attr("PolicyError")); py::register_exception(m, "ReactionError", m.attr("GridFireError")); py::register_exception(m, "ReactionParsingError", m.attr("ReactionError")); py::register_exception(m, "SolverError", m.attr("GridFireError")); py::register_exception(m, "SingularJacobianError", m.attr("SolverError")); py::register_exception(m, "IllConditionedJacobianError", m.attr("SolverError")); py::register_exception(m, "SUNDIALSError", m.attr("SolverError")); py::register_exception(m, "CVODESolverFailureError", m.attr("SUNDIALSError")); py::register_exception(m, "KINSolSolverFailureError", m.attr("SUNDIALSError")); }