μ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 | Private Attributes | List of all members
error_fetch_and_normalize Struct Reference

#include </builds/ipbus/ipbus-software/uhal/python/pybind11/include/pybind11/pytypes.h>

Collaboration diagram for error_fetch_and_normalize:
[legend]

Public Member Functions

 error_fetch_and_normalize (const char *called)
 
 error_fetch_and_normalize (const error_fetch_and_normalize &)=delete
 
 error_fetch_and_normalize (error_fetch_and_normalize &&)=delete
 
std::string format_value_and_trace () const
 
std::string const & error_string () const
 
void restore ()
 
bool matches (handle exc) const
 

Public Attributes

object m_type
 
object m_value
 
object m_trace
 

Private Attributes

std::string m_lazy_error_string
 
bool m_lazy_error_string_completed = false
 
bool m_restore_called = false
 

Detailed Description

Definition at line 474 of file pytypes.h.

Constructor & Destructor Documentation

◆ error_fetch_and_normalize() [1/3]

error_fetch_and_normalize::error_fetch_and_normalize ( const char *  called)
inlineexplicit

◆ error_fetch_and_normalize() [2/3]

error_fetch_and_normalize::error_fetch_and_normalize ( const error_fetch_and_normalize )
delete

◆ error_fetch_and_normalize() [3/3]

error_fetch_and_normalize::error_fetch_and_normalize ( error_fetch_and_normalize &&  )
delete

Member Function Documentation

◆ error_string()

std::string const & error_fetch_and_normalize::error_string ( ) const
inline

Definition at line 621 of file pytypes.h.

References format_value_and_trace(), m_lazy_error_string, and m_lazy_error_string_completed.

Referenced by error_string(), and restore().

◆ format_value_and_trace()

std::string error_fetch_and_normalize::format_value_and_trace ( ) const
inline

defined(PYPY_VERSION)

Definition at line 532 of file pytypes.h.

References handle::cast(), m_trace, m_value, and handle::ptr().

Referenced by error_fetch_and_normalize(), and error_string().

◆ matches()

bool error_fetch_and_normalize::matches ( handle  exc) const
inline

Definition at line 639 of file pytypes.h.

References m_type, and handle::ptr().

◆ restore()

void error_fetch_and_normalize::restore ( )
inline

Member Data Documentation

◆ m_lazy_error_string

std::string error_fetch_and_normalize::m_lazy_error_string
mutableprivate

Definition at line 648 of file pytypes.h.

Referenced by error_fetch_and_normalize(), and error_string().

◆ m_lazy_error_string_completed

bool error_fetch_and_normalize::m_lazy_error_string_completed = false
mutableprivate

Definition at line 649 of file pytypes.h.

Referenced by error_string().

◆ m_restore_called

bool error_fetch_and_normalize::m_restore_called = false
mutableprivate

Definition at line 650 of file pytypes.h.

Referenced by restore().

◆ m_trace

object error_fetch_and_normalize::m_trace

Definition at line 644 of file pytypes.h.

Referenced by error_fetch_and_normalize(), format_value_and_trace(), and restore().

◆ m_type

object error_fetch_and_normalize::m_type

Definition at line 644 of file pytypes.h.

Referenced by error_fetch_and_normalize(), matches(), and restore().

◆ m_value

object error_fetch_and_normalize::m_value

Definition at line 644 of file pytypes.h.

Referenced by error_fetch_and_normalize(), format_value_and_trace(), and restore().


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