Exception: Stretcher::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/stretcher/request_error.rb

Overview

Raised when the underlying http status of an operation != 200

Direct Known Subclasses

NotFound

Defined Under Namespace

Classes: NotFound

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http_response) ⇒ RequestError

Returns a new instance of RequestError


6
7
8
# File 'lib/stretcher/request_error.rb', line 6

def initialize(http_response)
  @http_response = http_response
end

Instance Attribute Details

#http_responseObject (readonly)

Returns the value of attribute http_response


4
5
6
# File 'lib/stretcher/request_error.rb', line 4

def http_response
  @http_response
end