We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 691a9a2 commit 4c6ed4aCopy full SHA for 4c6ed4a
src/mobase/mobase.cpp
@@ -5,6 +5,9 @@
5
#include <tuple>
6
#include <variant>
7
8
+#include <uibase/exceptions.h>
9
+#include <uibase/versioning.h>
10
+
11
#include <pybind11/embed.h>
12
13
#include "pybind11_all.h"
@@ -24,6 +27,13 @@ PYBIND11_MODULE(mobase, m)
24
27
m.add_object("PyQt6.QtGui", py::module_::import("PyQt6.QtGui"));
25
28
m.add_object("PyQt6.QtWidgets", py::module_::import("PyQt6.QtWidgets"));
26
29
30
+ // exceptions
31
+ //
32
+ py::register_exception<Exception>(m, "Exception");
33
+ py::register_exception<InvalidNXMLinkException>(m, "InvalidNXMLinkException");
34
+ py::register_exception<IncompatibilityException>(m, "IncompatibilityException");
35
+ py::register_exception<InvalidVersionException>(m, "InvalidVersionException");
36
37
// bindings
38
//
39
mo2::python::add_basic_bindings(m);
0 commit comments