My Project  v0.0.16
Public Member Functions | Private Attributes | List of all members
ExceptionTranslator<ExceptionType> Class Template Reference

#include <converters_exceptions.hpp>

Public Member Functions

Private Attributes

Detailed Description

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)

Constructor & Destructor Documentation

◆ ExceptionTranslator()

ExceptionTranslator ( PyObject*  exception_pyType)

Member Function Documentation

◆ operator()()

void operator() ( const ExceptionType&  e) const

Translation function called at the C-python boundary.

Member Data Documentation

◆ 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: