Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determine exceptions to be thrown by client #3

Open
alaninmcr opened this issue Mar 18, 2014 · 3 comments
Open

Determine exceptions to be thrown by client #3

alaninmcr opened this issue Mar 18, 2014 · 3 comments
Assignees

Comments

@alaninmcr
Copy link
Member

No description provided.

@Y-Lammers
Copy link
Contributor

Json exception: json.loads(json_object) throw a ValueError when dealing with an invalid format.

@Y-Lammers
Copy link
Contributor

Requests exceptions: either a generalized error like: requests.exceptions.RequestException or special errors if needed: timeout (requests.exceptions.Timeout) or network issues (requests.exceptions.ConnectionError).

@Y-Lammers
Copy link
Contributor

Raise a VallueError if the username and password arn't in the string format. Use isinstance(username/password, str) else: raise ValueError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants