Exception: Dropbox::APIError
- Defined in:
- lib/dropbox/api.rb
Overview
Superclass for exceptions raised when the server reports an error.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
The request URL.
-
#response ⇒ Object
readonly
The Net::HTTPResponse returned by the server.
Instance Method Summary collapse
-
#initialize(request, response) ⇒ APIError
constructor
:nodoc:.
-
#to_s ⇒ Object
:nodoc:.
Constructor Details
#initialize(request, response) ⇒ APIError
:nodoc:
531 532 533 534 |
# File 'lib/dropbox/api.rb', line 531 def initialize(request, response) # :nodoc: @request = request @response = response end |
Instance Attribute Details
#request ⇒ Object (readonly)
The request URL.
527 528 529 |
# File 'lib/dropbox/api.rb', line 527 def request @request end |
#response ⇒ Object (readonly)
The Net::HTTPResponse returned by the server.
529 530 531 |
# File 'lib/dropbox/api.rb', line 529 def response @response end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
536 537 538 |
# File 'lib/dropbox/api.rb', line 536 def to_s # :nodoc: "API error: #{request}" end |