Base class for errors that expose a localized message alongside the developer-focused stack trace and payload.

Hierarchy (View Summary)

Constructors

Properties

locale: string
messages: string[]
nativeMessage?: string
nativeMessageParams: unknown[]
parentError?: Error
payload: Record<string, unknown>
translateFn: TranslateFn
userMessage?: string
userMessageParams: unknown[]

Accessors

  • get message(): string

    Dynamically formats the aggregate message from the internal store.

    Returns string

Methods

  • Escapes interpolated values so UI layers can safely render the message.

    Returns string[]