Exception: Puppet::Rest::ResponseError Private
- Defined in:
- lib/puppet/rest/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(msg, response = nil) ⇒ ResponseError
constructor
private
Error thrown when request status is not OK.
Constructor Details
#initialize(msg, response = nil) ⇒ 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.
Error thrown when request status is not OK.
10 11 12 13 |
# File 'lib/puppet/rest/errors.rb', line 10 def initialize(msg, response = nil) super(msg) @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.
4 5 6 |
# File 'lib/puppet/rest/errors.rb', line 4 def response @response end |