MCPcopy Create free account
hub / github.com/MITK/MITK / InitException

Function InitException

Wrapping/Python/mitk/Exception.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using namespace mitk;
18
19void 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
25Subclass of Python's built-in :py:class:`Exception`. Mirrors the C++
26``mitk::Exception`` type and carries the message produced by the
27underlying MITK macro (e.g. ``mitkThrow()``).
28)";
29}

Callers 1

PYBIND11_MODULEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected