Exception: PuppetDB::APIError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- PuppetDB::APIError
- Defined in:
- lib/puppetdb/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ APIError
constructor
A new instance of APIError.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/puppetdb/error.rb', line 3 def code @code end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/puppetdb/error.rb', line 3 def response @response end |