Exception: Puppet::Rest::ResponseError

Inherits:
Error
  • Object
show all
Defined in:
lib/puppet/rest/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#original

Instance Method Summary collapse

Constructor Details

#initialize(msg, response = nil) ⇒ ResponseError

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

#responseObject (readonly)

Returns the value of attribute response


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

def response
  @response
end