SmartRedis
SmartRedis copied to clipboard
Augment Python error tracebacks with where information from C++ exception
Description
SRException::where()
location information should be put into the Python exception Traceback info. This information is collected at exception throw sites in the C++ code via the macros (defined in srexception.h
) that create exceptions.
Implementation Notes
The Python class https://docs.python.org/3/library/traceback.html enables manipulation of the Traceback information. It is currently unknown whether Pybind enables direct access to this class. If not, an indirect approach that funnels information to it will be required.
Acceptance Criteria
Exception throw site information should appear in the Python Traceback information