← 输入框|github.com|刷新
Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.
This repository was archived by the owner on Nov 29, 2021. It is now read-only.

Detailed exception for authorization related error #80

Open

Description

@ericln

hi,

is it possible to provide a more detailed exception than just DropboxException ?
basically I am looking for a way to determine if it's authorization related exception or invalid path...etc...so we can better handler it

thanks,

Activity

  1. dkarzon commented on Oct 19, 2012

    @dkarzon
    Member

    This info is actually available through the Response property of the DropboxException object. From here you have access to the http response code which will give you a 403 for authentication error, 404 for invalid path etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions