OPAL (Object Oriented Parallel Accelerator Library)
2022.1
OPAL
src
src
_PyOpal
ExceptionTranslation.cpp
Go to the documentation of this file.
1
#include "
Classic/Utilities/ClassicException.h
"
2
#include "
Utilities/OpalException.h
"
3
#include "
PyOpal/ExceptionTranslation.h
"
4
5
namespace
PyOpal
{
6
namespace
ExceptionTranslation {
7
void
registerExceptions
() {
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
}
ClassicException.h
OpalException.h
PyOpal
Definition:
ExceptionTranslation.cpp:5
PyOpal::ExceptionTranslation::registerExceptions
void registerExceptions()
Definition:
ExceptionTranslation.cpp:7
ExceptionTranslation.h
Generated on Thu Oct 20 2022 17:40:11 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.3