Exception: OmniAI::HTTPError
Overview
An error that wraps an HTTP::Response for non-OK requests.
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(response) ⇒ HTTPError
Returns a new instance of HTTPError.
19 20 21 22 |
# File 'lib/omniai.rb', line 19 def initialize(response) super("status=#{response.status.inspect} headers=#{response.headers.inspect} body=#{response.body}") @response = response end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
16 17 18 |
# File 'lib/omniai.rb', line 16 def response @response end |