VertexAIError class

Error class for the Vertex AI for Firebase SDK.

Signature:

export declare class VertexAIError extends FirebaseError 

Extends: FirebaseError

Constructors

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

Properties

Property Modifiers Type Description
code VertexAIErrorCode
customErrorData CustomErrorData | undefined
message string

VertexAIError.(constructor)

Constructs a new instance of the VertexAIError class.

Signature:

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

Parameters

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.

VertexAIError.code

Signature:

readonly code: VertexAIErrorCode;

VertexAIError.customErrorData

Signature:

readonly customErrorData?: CustomErrorData | undefined;

VertexAIError.message

Signature:

readonly message: string;