ClientErrorReport interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface ClientErrorReport

One error as it is sent to the host, after trimming and redaction.

Properties

source

readonly source: ClientErrorSource;

error for an uncaught exception, unhandled-rejection for a rejected promise nothing handled, runtime for an error the Views runtime caught, such as one a subscriber threw.

message

readonly message: string;

The error's message, at most maxMessageLength characters.

name

readonly name?: string;

The error's type, such as TypeError, when it has one.

stack

readonly stack?: string;

The stack, at most maxStackLines lines and maxStackLength characters, when it has one.

url

readonly url?: string;

The page's URL without its query and fragment.

route

readonly route?: string;

The route of a View whose push or subscriber failed, for a runtime error.