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

Document error handling #450

Open
mjallday opened this issue Sep 10, 2014 · 1 comment
Open

Document error handling #450

mjallday opened this issue Sep 10, 2014 · 1 comment

Comments

@mjallday
Copy link
Contributor

https://botbot.me/freenode/balanced/2014-09-10/?msg=21410510&page=2

We do not have any clear examples of how best to handle errors in the various clients.

I looked at the client libraries themselves as well as the rentmybike example applications. The example apps catch generic exception types, they don't even bother to catch specific errors.

Can we add examples of how to handle a couple of different types or errors (insufficient-funds, card-declined and general validation error would be a good start)

mjallday pushed a commit to balanced/balanced-python that referenced this issue Sep 10, 2014
@trenton42
Copy link

It would also be nice to see the category_code list grouped by status_code in the docs as well as the possible three digit codes that prefix the description field for things like card-declined (I just looked at 5 different card-declined errors in our logs and saw 5 different descriptions).

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

No branches or pull requests

2 participants