GoogleApiError is thrown when http 4XX status is received. See https://cloud.google.com/apis/design/errors
Inheritance
Error > GoogleApiErrorPackage
@google-cloud/vertexaiConstructors
(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;