Exception: GeminiAi::Errors::RequestError

Inherits:
GeminiAiError
  • Object
show all
Defined in:
lib/gemini-ai/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, request: nil, payload: nil) ⇒ RequestError

Returns a new instance of RequestError.



11
12
13
14
15
# File 'lib/gemini-ai/errors.rb', line 11

def initialize(message = nil, request: nil, payload: nil)
  @request = request
  @payload = payload
  super(message)
end

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload.



9
10
11
# File 'lib/gemini-ai/errors.rb', line 9

def payload
  @payload
end

#requestObject (readonly)

Returns the value of attribute request.



9
10
11
# File 'lib/gemini-ai/errors.rb', line 9

def request
  @request
end