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 %}
Error class for the Vertex AI in Firebase SDK.
Signature:
export declare class VertexAIError extends FirebaseError
Extends: FirebaseError
Constructor | Modifiers | Description |
---|---|---|
(constructor)(code, message, customErrorData) | Constructs a new instance of the VertexAIError class. |
Property | Modifiers | Type | Description |
---|---|---|---|
code | VertexAIErrorCode | ||
customErrorData | CustomErrorData | undefined |
Constructs a new instance of the VertexAIError
class.
Signature:
constructor(code: VertexAIErrorCode, message: string, customErrorData?: CustomErrorData | undefined);
Parameter | Type | Description |
---|---|---|
code | VertexAIErrorCode | The error code from VertexAIErrorCode. |
message | string | A human-readable message describing the error. |
customErrorData | CustomErrorData | undefined | Optional error data. |
Signature:
readonly code: VertexAIErrorCode;
Signature:
readonly customErrorData?: CustomErrorData | undefined;