Exception: Pact::PactFile::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- Pact::PactFile::HttpError
- Defined in:
- lib/pact/consumer_contract/pact_file.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, response) ⇒ HttpError
constructor
A new instance of HttpError.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
14 15 16 |
# File 'lib/pact/consumer_contract/pact_file.rb', line 14 def response @response end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
14 15 16 |
# File 'lib/pact/consumer_contract/pact_file.rb', line 14 def uri @uri end |