Options accepted by AbstractReportedError.

interface ReportedErrorOptions {
    message?: string;
    messageParams?: unknown;
    parentError?: Error;
    payload?: Record<string, unknown>;
    translateFn?: TranslateFn;
    userMessage?: string;
    userMessageParams?: unknown;
}

Hierarchy (View Summary)

Properties

message?: string

Message template (sprintf-compatible) used for the error.

messageParams?: unknown

Parameters that will be interpolated into the formatted message.

parentError?: Error

Underlying error that triggered the current failure.

payload?: Record<string, unknown>

Additional structured data attached to the error instance.

translateFn?: TranslateFn

Formatter used to render the localized user message.

userMessage?: string

i18n key or literal string visible to end users.

userMessageParams?: unknown

Parameters interpolated into the localized user message.