class

AI::Google::GoogleError

Inherits Exception < Reference < Object

Google API error.

This error is raised when the Google API returns an error response.

Constructors

new(data : GoogleErrorData)
Source

Instance methods

code

Error code, e.g. 400, 401, 403.

Source
data

The error data from the API response.

Source
status

Error status, e.g. "INVALID_ARGUMENT", "UNAUTHENTICATED".

Source