Exception: Geminize::RequestError

Inherits:
GeminizeError show all
Defined in:
lib/geminize/errors.rb

Overview

Error raised for network/request issues

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, code = nil, http_status = nil) ⇒ RequestError

Returns a new instance of RequestError.



73
74
75
76
77
78
79
# File 'lib/geminize/errors.rb', line 73

def initialize(message = nil, code = nil, http_status = nil)
  super(
    message || "There was an error making the request to the Gemini API.",
    code,
    http_status
  )
end