Traceback

class pyto_runtime.Traceback

A serialized traceback.

property as_text: str

The stack trace as a string.

property end_offset: int

If SyntaxError, the end position of the concerned code.

property exc_type: str

A string describing the type of the exception.

property msg: str

The receiver’s message string.

property name

If AttributeError or NameError, the name that caused the error.

property offset: int

If SyntaxError, the beggining start position of the concerned code.

property stack: list[Frame]

A pre-loaded list containing every frame serialized as pyto_runtime.Frame objects.

property suggestion

If AttributeError or NameError, a suggestion to fix the error.