Exception: Puppet::HTTP::ResponseError Private
- 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
- #response ⇒ Object readonly private
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseError
constructor
private
A new instance of ResponseError.
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
#response ⇒ Object (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 |