OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Functions
PyOpal::ExceptionTranslation Namespace Reference

Functions

void registerExceptions ()
 
template<class T >
void translateException (T const &exception)
 
template<class T >
void translateOpalException (T const &exception)
 

Detailed Description

Exception translation uses boost::python hooks to wrap C++ exceptions

Function Documentation

◆ registerExceptions()

void PyOpal::ExceptionTranslation::registerExceptions ( )

◆ translateException()

template<class T >
void PyOpal::ExceptionTranslation::translateException ( T const &  exception)

Translates the std::exceptions into a RuntimeError

Definition at line 17 of file ExceptionTranslation.h.

◆ translateOpalException()

template<class T >
void PyOpal::ExceptionTranslation::translateOpalException ( T const &  exception)

Translates the OpalExceptions into a RuntimeError

Definition at line 22 of file ExceptionTranslation.h.