Exception: Gcloud::Datastore::ApiError
- Defined in:
- lib/gcloud/datastore/errors.rb
Overview
ApiError
Raised when an API call is not successful.
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
The API method of the failed HTTP request.
-
#response ⇒ Object
readonly
The response object of the failed HTTP request.
Instance Method Summary collapse
-
#initialize(method, response = nil) ⇒ ApiError
constructor
:nodoc:.
Constructor Details
#initialize(method, response = nil) ⇒ ApiError
:nodoc:
47 48 49 50 51 |
# File 'lib/gcloud/datastore/errors.rb', line 47 def initialize method, response = nil #:nodoc: super("API call to #{method} was not successful") @method = method @response = response end |
Instance Attribute Details
#method ⇒ Object (readonly)
The API method of the failed HTTP request.
41 42 43 |
# File 'lib/gcloud/datastore/errors.rb', line 41 def method @method end |
#response ⇒ Object (readonly)
The response object of the failed HTTP request.
45 46 47 |
# File 'lib/gcloud/datastore/errors.rb', line 45 def response @response end |