class AI::Google::GoogleError

Overview

Google API error.

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

Defined in:

ai/google/google_error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : GoogleErrorData) #

[View source]

Instance Method Detail

def code : Int32 | Nil #

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


[View source]
def data : GoogleErrorData #

The error data from the API response.


[View source]
def status : String #

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


[View source]