Files

1.9 KiB

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

AIError class

Error class for the Firebase AI SDK.

Signature:

export declare class AIError extends FirebaseError 

Extends: FirebaseError

Constructors

Constructor Modifiers Description
(constructor)(code, message, customErrorData) Constructs a new instance of the AIError class.

Properties

Property Modifiers Type Description
code AIErrorCode
customErrorData CustomErrorData | undefined

AIError.(constructor)

Constructs a new instance of the AIError class.

Signature:

constructor(code: AIErrorCode, message: string, customErrorData?: CustomErrorData | undefined);

Parameters

Parameter Type Description
code AIErrorCode The error code from AIErrorCode.
message string A human-readable message describing the error.
customErrorData CustomErrorData | undefined Optional error data.

AIError.code

Signature:

readonly code: AIErrorCode;

AIError.customErrorData

Signature:

readonly customErrorData?: CustomErrorData | undefined;