View module source on GitHub

ErrorConfig

class ErrorConfig(TypedDict)

Error config.

This class provides functionality to manage error configurations.

Error

class Error(BaseContainer)

Error.

This class represents an error event.

__init__

def __init__(config: ErrorConfig, writer: LogWriter)

Initialize the error.

Arguments:

NameTypeDescription
configErrorConfigThe config of the error.
writerLogWriterThe writer of the error.

data

def data() -> Dict[str, Any]

Get the data of the error.

Returns:

Dict[str, Any]: The data of the error.