Sign up (with export icon)

AICoreErrorInit

Api-interface iconinterface

Initialization object for AICoreError.

Properties

  • Chevron-right icon

    cause?: unknown

    Error that triggered this one. Exposed via the native Error.cause chain and used to infer abort state.

  • Chevron-right icon

    code: string

    Short identifier for the error (e.g. 'ai-applying-suggestion-failed').

  • Chevron-right icon

    context?: Record<string, unknown>

    Metadata (identifiers, codes, sizes).

  • Chevron-right icon

    isAbort?: boolean

    User-initiated cancellation. Defaults to whatever is inferred from cause.

  • Chevron-right icon

    Defaults to 'error'.

  • Chevron-right icon

    Defaults to 'system'.