File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 5
5
#include < tuple>
6
6
#include < variant>
7
7
8
+ #include < uibase/exceptions.h>
9
+ #include < uibase/versioning.h>
10
+
8
11
#include < pybind11/embed.h>
9
12
10
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
+
27
37
// bindings
28
38
//
29
39
mo2::python::add_basic_bindings (m);
You can’t perform that action at this time.
0 commit comments