Exception: Dropbox::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- 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)
-
- (Object) request
readonly
The request URL.
-
- (Object) response
readonly
The Net::HTTPResponse returned by the server.
Instance Method Summary (collapse)
-
- (APIError) initialize(request, response)
constructor
:nodoc:.
-
- (Object) to_s
:nodoc:.
Constructor Details
- (APIError) initialize(request, response)
:nodoc:
553 554 555 556 |
# File 'lib/dropbox/api.rb', line 553 def initialize(request, response) # :nodoc: @request = request @response = response end |
Instance Attribute Details
- (Object) request (readonly)
The request URL.
549 550 551 |
# File 'lib/dropbox/api.rb', line 549 def request @request end |
- (Object) response (readonly)
The Net::HTTPResponse returned by the server.
551 552 553 |
# File 'lib/dropbox/api.rb', line 551 def response @response end |
Instance Method Details
- (Object) to_s
:nodoc:
558 559 560 |
# File 'lib/dropbox/api.rb', line 558 def to_s # :nodoc: "API error: #{request}" end |