Exception: Puppet::HTTP::ResponseError Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Attributes inherited from Error

#original

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of ResponseError.


15
16
17
18
# File 'lib/puppet/http/errors.rb', line 15

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

Instance Attribute Details

#responseObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


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

def response
  @response
end