Shiboken::Errors Namespace
namespace Shiboken::ErrorsNamespace for error handling. More...
| Header: | #include <sbkerrors.h> |
Classes
| class | Stash |
Functions
| PyObject * | occurred() |
| void | storeErrorOrPrint() |
| void | storePythonOverrideErrorOrPrint(const char *className, const char *funcName) |
Detailed Description
Function Documentation
PyObject *Errors::occurred()
Handles an error as in PyErr_Occurred(), but also checks for errors which were captured by storeErrorOrPrint(). To be used in normal error checks.
void Errors::storeErrorOrPrint()
Reports an error ASAP: Instead of printing, store for later re-raise. This replaces PyErr_Print, which cannot report errors as exception. To be used in contexts where raising errors is impossible.
void Errors::storePythonOverrideErrorOrPrint(const char *className, const char *funcName)
Calls storeErrorOrPrint() and prints the context (className, funcName) to report errors when calling Python overrides of virtual functions.