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;