SmartRedis icon indicating copy to clipboard operation
SmartRedis copied to clipboard

Augment Python error tracebacks with where information from C++ exception

Open billschereriii opened this issue 3 years ago • 0 comments

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

billschereriii avatar Jan 04 '22 20:01 billschereriii