Exception: Puppet::HTTP::ResponseError

Inherits:
HTTPError show all
Defined in:
lib/puppet/http/errors.rb

Overview

An error due to an unsuccessful HTTP response, such as HTTP 500.

Instance Attribute Summary collapse

Attributes inherited from Error

#original

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError

Returns a new instance of ResponseError.



28
29
30
31
# File 'lib/puppet/http/errors.rb', line 28

def initialize(response)
  super(response.reason)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)



26
27
28
# File 'lib/puppet/http/errors.rb', line 26

def response
  @response
end