OPAL (Object Oriented Parallel Accelerator Library)  2024.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

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

Translates the std::exceptions into a RuntimeError

Definition at line 39 of file ExceptionTranslation.h.

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

Translates the OpalExceptions into a RuntimeError

Definition at line 45 of file ExceptionTranslation.h.