Base class for rich error types that collect formatted messages from subclasses while preserving the original stack and payload.

Hierarchy (View Summary)

Constructors

Properties

messages: string[]
nativeMessage?: string
nativeMessageParams: unknown[]
parentError?: Error
payload: Record<string, unknown>

Accessors

  • get message(): string

    Dynamically formats the aggregate message from the internal store.

    Returns string

Methods

  • Stores a fully formatted message in the aggregation buffer.

    Parameters

    • str: string

    Returns void

  • Adds native and parent messages (if available) to the internal store so subclasses can build a composite error summary.

    Returns void