Exception: PuppetDB::APIError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/puppetdb/error.rb

Direct Known Subclasses

AccessDeniedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ APIError

Returns a new instance of APIError.



4
5
6
# File 'lib/puppetdb/error.rb', line 4

def initialize(response)
  @response = response
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/puppetdb/error.rb', line 3

def code
  @code
end

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/puppetdb/error.rb', line 3

def response
  @response
end