#include <converters_exceptions.hpp>
template<class ExceptionType>
class pycomp7::ExceptionTranslator<ExceptionType>
Functor for exception translation. Written as functor (rather than function) to avoid storing the PyObject* for python versions of exception classes as global variables (member exception_pyType_ used here instead)
◆ ExceptionTranslator()
| ExceptionTranslator |
( |
PyObject* |
exception_pyType | ) |
|
◆ operator()()
| void operator() |
( |
const ExceptionType& |
e | ) |
const |
Translation function called at the C-python boundary.
◆ exception_pyType_
| PyObject* exception_pyType_ |
|
private |
Pointer to PyObject corresponding to C++ exception class ExceptionType.
The documentation for this class was generated from the following file: