struct AI::Google::GoogleErrorInfo

Overview

Information about a Google API error.

Included Modules

Defined in:

ai/google/google_error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(code : Int32 | Nil, message : String, status : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def code : Int32 | Nil #

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


[View source]
def message : String #

Error message.


[View source]
def status : String #

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


[View source]