OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
ExceptionTranslation.cpp
Go to the documentation of this file.
4
5namespace PyOpal {
6namespace ExceptionTranslation {
8 // handle std::exception (e.g. for IO errors)
9 py::register_exception_translator<std::exception>(translateException<std::exception>);
10 // handle Opal exceptions (they all inherit from ClassicException)
11 py::register_exception_translator<ClassicException>(translateOpalException<ClassicException>);
12}
13}
14}