Exception: GeminiAi::Errors::RequestError
- Inherits:
-
GeminiAiError
- Object
- StandardError
- GeminiAiError
- GeminiAi::Errors::RequestError
- Defined in:
- lib/gemini-ai/errors.rb
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(message = nil, request: nil, payload: nil) ⇒ RequestError
constructor
A new instance of RequestError.
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( = nil, request: nil, payload: nil) @request = request @payload = payload super() end |
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
9 10 11 |
# File 'lib/gemini-ai/errors.rb', line 9 def payload @payload end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
9 10 11 |
# File 'lib/gemini-ai/errors.rb', line 9 def request @request end |