This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / core / ultratb / VerboseTB / format_exception_as_a_whole

function

IPython.core.ultratb:VerboseTB.format_exception_as_a_whole

source: /IPython/core/ultratb.py:796

Signature

def format_exception_as_a_whole(self, etype: type, evalue: BaseException | None, etb: TracebackType | None, context: int, tb_offset: int | None) → list[list[str]]

Summary

Formats the header, traceback and exception message for a single exception.

Extended Summary

This may be called multiple times by Python 3 exception chaining (PEP 3134).

Aliases

  • IPython.core.ultratb.VerboseTB.format_exception_as_a_whole