class DropboxError

This is the usual error raised on any Dropbox related Errors

Attributes

error[RW]
http_response[RW]
user_error[RW]

Public Class Methods

new(error, http_response=nil, user_error=nil) click to toggle source
# File lib/dropbox_sdk.rb, line 690
def initialize(error, http_response=nil, user_error=nil)
  @error = error
  @http_response = http_response
  @user_error = user_error
end

Public Instance Methods

to_s() click to toggle source
# File lib/dropbox_sdk.rb, line 696
def to_s
  return "#{user_error} (#{error})" if user_error
  "#{error}"
end