resonance 1.0.1
Loading...
Searching...
No Matches
Py::RuntimeError Class Reference

Exception for a binding rule broken at run time, mirroring Python's RuntimeError. More...

#include <runtimeerror.h>

Inheritance diagram for Py::RuntimeError:
Collaboration diagram for Py::RuntimeError:

Public Member Functions

 RuntimeError (const HxStr &reason)
 Set the Python error indicator and become the thrown object.

Detailed Description

Exception for a binding rule broken at run time, mirroring Python's RuntimeError.

Its RTTI descriptor is at 0x008ef078. It has Py::StandardError at offset 0 as its one base. Its accessor is at 0x004c6aa8, and the emission at 0x005abc48 is an unreferenced copy.

Py::MethodTable::add() at 0x005a5bc8 throws it with Too late to add a module method!, and the string Object::decrement_reference_count error. at 0x00821bb8 belongs to the second PyCXX site that released PyCXX guards the same way. The constructor body and the global holding PyExc_RuntimeError both come from the MethodTable site.

Constructor & Destructor Documentation

◆ RuntimeError()

Py::RuntimeError::RuntimeError ( const HxStr & reason)
inline

Set the Python error indicator and become the thrown object.

Parameters
reasonText for the Python exception value. An empty string arrives at the interpreter as g_szEmptyString rather than as a null pointer.

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