Skip to main content

pyerr_to_plugin_error

Function pyerr_to_plugin_error 

Source
pub fn pyerr_to_plugin_error(err: PyErr) -> PluginError
Expand description

Convert a PyErr into a PluginError, preserving class name, message, and a formatted traceback in details.

Acquires the GIL internally, so callers can pass a PyErr they captured outside Python::with_gil (the typical case for ? propagation).