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.



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

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

Instance Attribute Details

#responseObject (readonly)



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

def response
  @response
end