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

Root of the PyCXX exception hierarchy. More...

#include <exception.h>

Inheritance diagram for Py::Exception:

Detailed Description

Root of the PyCXX exception hierarchy.

Its RTTI descriptor is at 0x0086f5c8. It has no base. The descriptor exists for the exception tables rather than for polymorphism, because the class has no vtable anywhere in the image.

The class is empty, and that is measured rather than assumed. Every throw Exception() in the image reserves one byte for the thrown object and writes no field into it. Py::Object::validate() at 0x004c3d10 is the clearest instance. The CPython error indicator carries the detail, so the thrown object needs no state.

Released PyCXX gives this class a constructor taking a module and a name, plus a clear() helper. Neither survives in the image, so neither is reconstructed.


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