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

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

Functions

void registerExceptions ()
 Register exception translations with boost. More...
 
template<class T >
void translateException (T const &exception)
 Translates the std::exceptions into a RuntimeError. More...
 
template<class T >
void translateOpalException (T const &exception)
 Translates the OpalExceptions into a RuntimeError. More...
 

Detailed Description

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

Function Documentation

◆ registerExceptions()

◆ translateException()

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.

◆ translateOpalException()

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

Translates the OpalExceptions into a RuntimeError.

Definition at line 45 of file ExceptionTranslation.h.