TracebackSummary

class caqtus.session.TracebackSummary(
exc_type: str,
exc_msg: str,
notes: list[str] | None,
cause: TracebackSummary | None,
context: TracebackSummary | None,
exceptions: list[TracebackSummary] | None,
)

Bases: object

Represents a summary of an exception and its traceback.

exc_type

The fully-qualified name of the exception type, like builtins.RuntimeError.

Type:

str

exc_msg

The exception message.

Type:

str

notes

A list of notes that were attached to the traceback.

Type:

list[str] | None

cause

The exception that caused this exception, if any.

Type:

caqtus.session._exception_summary.TracebackSummary | None

context

The exception that was being handled when this exception was raised, if any.

Type:

caqtus.session._exception_summary.TracebackSummary | None

exceptions

A list of exceptions that were caught by this exception if it is an instance of BaseExceptionGroup.

Type:

list[caqtus.session._exception_summary.TracebackSummary] | None

exc_cls() str

Return the exception class name without the module.