Sign up (with export icon)

AICoreErrorInit

Api-interface iconinterface

Initialization object for AICoreError.

Properties

  • Chevron-right icon

    cause : unknown | undefined

    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> | undefined

    Metadata (identifiers, codes, sizes).

  • Chevron-right icon

    isAbort : boolean | undefined

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

  • Chevron-right icon

    Defaults to 'error'.

  • Chevron-right icon

    type : AICoreErrorType | undefined

    Defaults to 'system'.