Exception: ErrorResponse
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ErrorResponse
- Defined in:
- lib/arcgis/connection.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response = {}) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
Constructor Details
#initialize(response = {}) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
96 97 98 99 100 101 |
# File 'lib/arcgis/connection.rb', line 96 def initialize(response={}) = response["message"] || response[:message] || response[:code] || response.inspect += response["details"].join("\n") if response["details"] super() @response = response end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
95 96 97 |
# File 'lib/arcgis/connection.rb', line 95 def response @response end |