class Dropbox::ClientError

Thrown when Dropbox::Client encounters an error unrelated to the API.

Attributes

message[R]

Public Class Methods

invalid_access_token() click to toggle source
# File lib/dropbox/errors.rb, line 8
def self.invalid_access_token
  self.new("Invalid access token")
end
new(message=nil) click to toggle source
# File lib/dropbox/errors.rb, line 16
def initialize(message=nil)
  @message = message
end
unknown_response_type(str) click to toggle source
# File lib/dropbox/errors.rb, line 12
def self.unknown_response_type(str)
  self.new("Unknown response type '#{str}'")
end

Public Instance Methods

to_s() click to toggle source
# File lib/dropbox/errors.rb, line 20
def to_s
  @message.to_s
end