1#include "state_representation_bindings.hpp"
3#include <state_representation/exceptions/EmptyStateException.hpp>
4#include <state_representation/exceptions/IncompatibleReferenceFramesException.hpp>
5#include <state_representation/exceptions/IncompatibleSizeException.hpp>
6#include <state_representation/exceptions/IncompatibleStatesException.hpp>
7#include <state_representation/exceptions/InvalidCastException.hpp>
8#include <state_representation/exceptions/InvalidParameterException.hpp>
9#include <state_representation/exceptions/JointNotFoundException.hpp>
10#include <state_representation/exceptions/NotImplementedException.hpp>
12void bind_exceptions(py::module_& m) {
13 py::register_exception<exceptions::EmptyStateException>(m,
"EmptyStateError", PyExc_RuntimeError);
14 py::register_exception<exceptions::IncompatibleReferenceFramesException>(m,
"IncompatibleReferenceFramesError", PyExc_RuntimeError);
15 py::register_exception<exceptions::IncompatibleSizeException>(m,
"IncompatibleSizeError", PyExc_RuntimeError);
16 py::register_exception<exceptions::IncompatibleStatesException>(m,
"IncompatibleStatesError", PyExc_RuntimeError);
17 py::register_exception<exceptions::InvalidCastException>(m,
"InvalidCastError", PyExc_RuntimeError);
18 py::register_exception<exceptions::InvalidParameterException>(m,
"InvalidParameterError", PyExc_RuntimeError);
19 py::register_exception<exceptions::JointNotFoundException>(m,
"JointNotFoundError", PyExc_RuntimeError);
20 py::register_exception<exceptions::NotImplementedException>(m,
"NotImplementedError", PyExc_RuntimeError);