| 17 | using namespace mitk; |
| 18 | |
| 19 | void InitException(py::module_& m) |
| 20 | { |
| 21 | auto exc = py::register_exception<mitk::Exception>(m, "Exception"); |
| 22 | exc.attr("__doc__") = |
| 23 | R"(Exception raised by MITK C++ code. |
| 24 | |
| 25 | Subclass of Python's built-in :py:class:`Exception`. Mirrors the C++ |
| 26 | ``mitk::Exception`` type and carries the message produced by the |
| 27 | underlying MITK macro (e.g. ``mitkThrow()``). |
| 28 | )"; |
| 29 | } |