Skip to content

Error Message¤

ErrorMessage dataclass ¤

ErrorMessage(
    when: When,
    location: Location,
    exception_type: str,
    exception_value: str,
    traceback: Traceback,
    event: str = "error_message",
)

An error message.

event class-attribute instance-attribute ¤

event: str = 'error_message'

The event type. Always 'error_message'.

exception_type instance-attribute ¤

exception_type: str

The exception type as a string.

exception_value instance-attribute ¤

exception_value: str

The exception value as a string.

location instance-attribute ¤

location: Location

The location of the error.

traceback instance-attribute ¤

traceback: Traceback

The traceback of the error. A traceback contains entries for each frame of the call stack.

when instance-attribute ¤

when: When

When the error message is emitted.