Sign up (with export icon)

AIErrorSinkEventData

Api-interface iconinterface

Payload of the AIErrorSinkErrorEvent sink event.

Error reporting services serialize only name, message and stack of an Error, so everything a reported AICoreError carries as its own properties is flattened here. A subscriber can therefore classify and forward the failure without inspecting the error itself.

Properties

  • Chevron-right icon

    code?: string

    Code of the reported error, for example 'ai-chat-file-upload-failed'. undefined for errors that are not an AICoreError.

  • component: string

  • Chevron-right icon

    context?: Record<string, unknown>

    Metadata carried by the reported error merged with the catch-site context, the latter winning on key conflicts. undefined when neither is present.

  • error: unknown

  • Chevron-right icon

    Severity of the reported error. undefined for errors that are not an AICoreError.

  • Chevron-right icon

    Classification of the reported error. Use it to skip the failures that are not actionable telemetry: 'user' (surfaced via UI) and 'network' (transient). undefined for errors that are not an AICoreError.