Exception: Puppet::HTTP::ResponseError
- Defined in:
- lib/puppet/http/errors.rb
Overview
An error due to an unsuccessful HTTP response, such as HTTP 500.
Instance Attribute Summary collapse
- #response ⇒ Object readonly
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseError
constructor
A new instance of ResponseError.
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
#response ⇒ Object (readonly)
27 28 29 |
# File 'lib/puppet/http/errors.rb', line 27 def response @response end |