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.


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

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

Instance Attribute Details

#responseObject (readonly)


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

def response
  @response
end