dropbox.exceptions – Exceptions

exception dropbox.exceptions.ApiError(request_id, error, user_message_text, user_message_locale)

Bases: dropbox.exceptions.DropboxException

Errors produced by the Dropbox API.

__init__(request_id, error, user_message_text, user_message_locale)
Parameters:
  • request_id ((str)) – A request_id can be shared with Dropbox Support to pinpoint the exact request that returns an error.
  • error – An instance of the error data type for the route.
  • user_message_text ((str)) – A human-readable message that can be displayed to the end user. Is None, if unavailable.
  • user_message_locale ((str)) – The locale of user_message_text, if present.
exception dropbox.exceptions.AuthError(request_id, error)

Bases: dropbox.exceptions.HttpError

Errors due to invalid authentication credentials.

__init__(request_id, error)

x.__init__(…) initializes x; see help(type(x)) for signature

exception dropbox.exceptions.BadInputError(request_id, message)

Bases: dropbox.exceptions.HttpError

Errors due to bad input parameters to an API Operation.

__init__(request_id, message)

x.__init__(…) initializes x; see help(type(x)) for signature

exception dropbox.exceptions.DropboxException(request_id, *args, **kwargs)

Bases: exceptions.Exception

All errors related to making an API request extend this.

__init__(request_id, *args, **kwargs)

x.__init__(…) initializes x; see help(type(x)) for signature

exception dropbox.exceptions.HttpError(request_id, status_code, body)

Bases: dropbox.exceptions.DropboxException

Errors produced at the HTTP layer.

__init__(request_id, status_code, body)

x.__init__(…) initializes x; see help(type(x)) for signature

exception dropbox.exceptions.InternalServerError(request_id, status_code, body)

Bases: dropbox.exceptions.HttpError

Errors due to a problem on Dropbox.

exception dropbox.exceptions.PathRootError(request_id, error=None)

Bases: dropbox.exceptions.HttpError

Error caused by an invalid path root.

__init__(request_id, error=None)

x.__init__(…) initializes x; see help(type(x)) for signature

exception dropbox.exceptions.RateLimitError(request_id, error=None, backoff=None)

Bases: dropbox.exceptions.HttpError

Error caused by rate limiting.

__init__(request_id, error=None, backoff=None)

x.__init__(…) initializes x; see help(type(x)) for signature