Expand description
Bridge Python exceptions into fidius’s PluginError.
Every Python exception raised by plugin code crosses this helper on its way back to the host. The mapping rules are:
code← the exception class name (e.g."ValueError","KeyError").message←str(exc)— the user-facing message Python produced.details← a JSON-encoded object containing the formatted traceback (and, in later tasks, any structured fields afidius.PluginErrorraise carried).
This file deliberately stays minimal: later tasks (FIDIUS-T-0086,
FIDIUS-T-0089) extend it with fidius.PluginError-aware unwrapping so
plugin code can raise typed errors without their fields being flattened.
Functions§
- pyerr_
to_ plugin_ error - Convert a
PyErrinto aPluginError, preserving class name, message, and a formatted traceback indetails.