class traceback.TracebackException(exc_type, exc_value, exc_traceback, *, limit=None, lookup_lines=True, capture_locals=False)
Capture an exception for later rendering. limit, lookup_lines and capture_locals are as for the StackSummary class.
Note that when locals are captured, they are also shown in the traceback.
__cause__
A TracebackException of the original __cause__.
__context__
A TracebackException of the original __context__.
__suppress_context__
The __suppress_context_