μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
error_scope Struct Reference

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

#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/include/pybind11/detail/common.h>

Public Member Functions

 error_scope ()
 
 ~error_scope ()
 
 error_scope ()
 
 error_scope (const error_scope &)=delete
 
error_scopeoperator= (const error_scope &)=delete
 
 ~error_scope ()
 

Public Attributes

PyObject * type
 
PyObject * value
 
PyObject * trace
 

Detailed Description

RAII wrapper that temporarily clears any Python error state.

Definition at line 1044 of file common.h.

Constructor & Destructor Documentation

◆ error_scope() [1/3]

error_scope::error_scope ( )
inline

Definition at line 1046 of file common.h.

References trace, and value.

◆ ~error_scope() [1/2]

error_scope::~error_scope ( )
inline

Definition at line 1047 of file common.h.

References trace, and value.

◆ error_scope() [2/3]

error_scope::error_scope ( )
inline

Definition at line 1060 of file common.h.

References trace, and value.

◆ error_scope() [3/3]

error_scope::error_scope ( const error_scope )
delete

◆ ~error_scope() [2/2]

error_scope::~error_scope ( )
inline

Definition at line 1063 of file common.h.

References trace, and value.

Member Function Documentation

◆ operator=()

error_scope & error_scope::operator= ( const error_scope )
delete

Member Data Documentation

◆ trace

PyObject * error_scope::trace

Definition at line 1045 of file common.h.

Referenced by error_scope(), and ~error_scope().

◆ type

PyObject * error_scope::type

Definition at line 1045 of file common.h.

◆ value

PyObject * error_scope::value

Definition at line 1045 of file common.h.

Referenced by error_scope(), and ~error_scope().


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