cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Public Member Functions | Public Attributes | List of all members
error_scope Struct Reference

RAII wrapper that temporarily clears any Python error state. More...

#include <common.h>

Public Member Functions

 error_scope ()
 
 ~error_scope ()
 

Public Attributes

PyObject * type
 
PyObject * value
 
PyObject * trace
 

Detailed Description

RAII wrapper that temporarily clears any Python error state.

Definition at line 785 of file common.h.

Constructor & Destructor Documentation

◆ error_scope()

error_scope::error_scope ( )
inline

Definition at line 787 of file common.h.

◆ ~error_scope()

error_scope::~error_scope ( )
inline

Definition at line 788 of file common.h.

Member Data Documentation

◆ trace

PyObject * error_scope::trace

Definition at line 786 of file common.h.

◆ type

PyObject* error_scope::type

Definition at line 786 of file common.h.

◆ value

PyObject * error_scope::value

Definition at line 786 of file common.h.


The documentation for this struct was generated from the following file: