Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions lib/dropbox/errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
module Dropbox
# Thrown when Dropbox::Client encounters an error unrelated to the API.
class ClientError < StandardError
attr_reader :message

def self.invalid_access_token
self.new("Invalid access token")
end
Expand All @@ -24,8 +22,6 @@ def to_s

# Thrown when the API returns an error response.
class ApiError < StandardError
attr_reader :message

def initialize(response)
if response.content_type.mime_type == 'application/json'
@message = JSON.parse(response)['error_summary']
Expand Down