Exception: Puppet::HTTP::ResponseError

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

Instance Attribute Summary collapse

Attributes inherited from Error

#original

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError


13
14
15
16
# File 'lib/puppet/http/errors.rb', line 13

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response


11
12
13
# File 'lib/puppet/http/errors.rb', line 11

def response
  @response
end