Exception: Puppet::Rest::ResponseError Private

Inherits:
Error
  • Object
show all
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

Attributes inherited from Error

#original

Instance Method Summary collapse

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.

Parameters:

  • msg (String)

    the error message

  • response (Puppet::Rest::Response) (defaults to: nil)

    the response from the failed request



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

#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.



4
5
6
# File 'lib/puppet/rest/errors.rb', line 4

def response
  @response
end