VertexAIError class
Stay organized with collections
Save and categorize content based on your preferences.
Error class for the Vertex AI in Firebase SDK.
Signature:
export declare class VertexAIError extends FirebaseError
Extends: FirebaseError
Constructors
Properties
VertexAIError.(constructor)
Constructs a new instance of the VertexAIError
class.
Signature:
constructor(code: VertexAIErrorCode, message: string, customErrorData?: CustomErrorData | undefined);
Parameters
VertexAIError.code
Signature:
readonly code: VertexAIErrorCode;
VertexAIError.customErrorData
Signature:
readonly customErrorData?: CustomErrorData | undefined;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-24 UTC.
[null,null,["Last updated 2025-04-24 UTC."],[],[],null,["# VertexAIError class\n\nError class for the Vertex AI in Firebase SDK.\n\n**Signature:** \n\n export declare class VertexAIError extends FirebaseError \n\n**Extends:** [FirebaseError](./util.firebaseerror.md#firebaseerror_class)\n\nConstructors\n------------\n\n| Constructor | Modifiers | Description |\n|-------------------------------------------------------------------------------------------------------|-----------|---------------------------------------------------------|\n| [(constructor)(code, message, customErrorData)](./vertexai.vertexaierror.md#vertexaierrorconstructor) | | Constructs a new instance of the `VertexAIError` class. |\n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|-----------------------------------------------------------------------------|-----------|-----------------------------------------------------------------------------------------|-------------|\n| [code](./vertexai.vertexaierror.md#vertexaierrorcode) | | [VertexAIErrorCode](./vertexai.md#vertexaierrorcode) | |\n| [customErrorData](./vertexai.vertexaierror.md#vertexaierrorcustomerrordata) | | [CustomErrorData](./vertexai.customerrordata.md#customerrordata_interface) \\| undefined | |\n\nVertexAIError.(constructor)\n---------------------------\n\nConstructs a new instance of the `VertexAIError` class.\n\n**Signature:** \n\n constructor(code: VertexAIErrorCode, message: string, customErrorData?: CustomErrorData | undefined);\n\n#### Parameters\n\n| Parameter | Type | Description |\n|-----------------|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------|\n| code | [VertexAIErrorCode](./vertexai.md#vertexaierrorcode) | The error code from [VertexAIErrorCode](./vertexai.md#vertexaierrorcode). |\n| message | string | A human-readable message describing the error. |\n| customErrorData | [CustomErrorData](./vertexai.customerrordata.md#customerrordata_interface) \\| undefined | Optional error data. |\n\nVertexAIError.code\n------------------\n\n**Signature:** \n\n readonly code: VertexAIErrorCode;\n\nVertexAIError.customErrorData\n-----------------------------\n\n**Signature:** \n\n readonly customErrorData?: CustomErrorData | undefined;"]]