Class GoogleApiError (1.9.0)

GoogleApiError is thrown when http 4XX status is received. See https://cloud.google.com/apis/design/errors

Inheritance

Error > GoogleApiError

Package

@google-cloud/vertexai

Constructors

(constructor)(message, code, status, errorDetails)

constructor(message: string, code?: number | undefined, status?: string | undefined, errorDetails?: ErrorDetails[] | undefined);

Constructs a new instance of the GoogleApiError class

Parameters
Name Description
message string
code number | undefined
status string | undefined
errorDetails ErrorDetails[] | undefined

Properties

code

code?: number | undefined;

errorDetails

errorDetails?: ErrorDetails[] | undefined;

status

status?: string | undefined;