Exception: Pact::PactFile::HttpError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pact/consumer_contract/pact_file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri, response) ⇒ HttpError

Returns a new instance of HttpError.



16
17
18
19
# File 'lib/pact/consumer_contract/pact_file.rb', line 16

def initialize(uri, response)
  @uri, @response = uri, response
  super("HTTP request failed: status=#{response.code}")
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



14
15
16
# File 'lib/pact/consumer_contract/pact_file.rb', line 14

def response
  @response
end

#uriObject (readonly)

Returns the value of attribute uri.



14
15
16
# File 'lib/pact/consumer_contract/pact_file.rb', line 14

def uri
  @uri
end