Exception: DropboxError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- DropboxError
- Defined in:
- lib/dropbox_sdk.rb
Overview
This is the usual error raised on any Dropbox related Errors
Direct Known Subclasses
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#http_response ⇒ Object
Returns the value of attribute http_response.
-
#user_error ⇒ Object
Returns the value of attribute user_error.
Instance Method Summary collapse
-
#initialize(error, http_response = nil, user_error = nil) ⇒ DropboxError
constructor
A new instance of DropboxError.
- #to_s ⇒ Object
Constructor Details
#initialize(error, http_response = nil, user_error = nil) ⇒ DropboxError
Returns a new instance of DropboxError.
696 697 698 699 700 |
# File 'lib/dropbox_sdk.rb', line 696 def initialize(error, http_response=nil, user_error=nil) @error = error @http_response = http_response @user_error = user_error end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
695 696 697 |
# File 'lib/dropbox_sdk.rb', line 695 def error @error end |
#http_response ⇒ Object
Returns the value of attribute http_response.
695 696 697 |
# File 'lib/dropbox_sdk.rb', line 695 def http_response @http_response end |
#user_error ⇒ Object
Returns the value of attribute user_error.
695 696 697 |
# File 'lib/dropbox_sdk.rb', line 695 def user_error @user_error end |
Instance Method Details
#to_s ⇒ Object
702 703 704 705 |
# File 'lib/dropbox_sdk.rb', line 702 def to_s return "#{user_error} (#{error})" if user_error "#{error}" end |