ID EN
Traceback

TracebackException

Python 3.11

Capture an exception for later rendering. limit, lookup_lines and capture_locals are as for the StackSummary class.

Syntax

PYTHON
class traceback.TracebackException(exc_type, exc_value, exc_traceback, *, limit=None, lookup_lines=True, capture_locals=False, compact=False, max_group_width=15, max_group_depth=10)

See Also

StackSummary format() __context__ __cause__ __suppress_context__ BaseExceptionGroup __cause__ __context__