|
1 | 1 | python-quickbooks
|
2 | 2 | =================
|
3 | 3 |
|
4 |
| -[](https://travis-ci.org/sidecars/python-quickbooks) |
5 |
| -[](https://coveralls.io/github/sidecars/python-quickbooks?branch=master) |
6 |
| -[](https://github.com/sidecars/python-quickbooks/blob/master/LICENSE) |
| 4 | +[](https://travis-ci.org/ej2/python-quickbooks) |
| 5 | +[](https://coveralls.io/github/ej2/python-quickbooks?branch=master) |
| 6 | +[](https://github.com/ej2/python-quickbooks/blob/master/LICENSE) |
7 | 7 |
|
8 | 8 | A Python 3 library for accessing the Quickbooks API. Complete rework of
|
9 | 9 | [quickbooks-python](https://github.com/troolee/quickbooks-python).
|
10 | 10 |
|
11 | 11 | These instructions were written for a Django application. Make sure to
|
12 | 12 | change it to whatever framework/method you’re using.
|
13 |
| -You can find additional examples of usage in[Integration tests folder](https://github.com/sidecars/python-quickbooks/tree/master/tests/integration). |
| 13 | +You can find additional examples of usage in[Integration tests folder](https://github.com/ej2/python-quickbooks/tree/master/tests/integration). |
14 | 14 |
|
15 |
| -For information about contributing, see the[Contributing Page](https://github.com/sidecars/python-quickbooks/wiki/Contributing). |
| 15 | +For information about contributing, see the[Contributing Page](https://github.com/ej2/python-quickbooks/wiki/Contributing). |
16 | 16 |
|
17 | 17 | QuickBooks OAuth
|
18 | 18 | ------------------------------------------------
|
@@ -280,6 +280,20 @@ Formating helpers are available in helpers.py. Example usage:
|
280 | 280 | date_time_string = qb_datetime_format(datetime(2016, 7, 22, 10, 35, 00))
|
281 | 281 | date_time_with_utc_string = qb_datetime_utc_offset_format(datetime(2016, 7, 22, 10, 35, 00), '-06:00')
|
282 | 282 |
|
| 283 | +Exception Handling |
| 284 | +---------------- |
| 285 | +The QuickbooksException object contains additional information from QBO. |
| 286 | + |
| 287 | +from quickbooks.exceptions import QuickbooksException |
| 288 | + |
| 289 | +try: |
| 290 | + # perform a Quickbooks operation |
| 291 | +except QuickbooksException as e: |
| 292 | + e.message # contains the error message returned from QBO |
| 293 | + e.error_code # contains the [QBO error code](https://developer.intuit.com/app/developer/qbo/docs/develop/troubleshooting/error-codes#id1) |
| 294 | + e.detail # contains additional information when available |
| 295 | + |
| 296 | + |
283 | 297 | **Note:** Objects and object property names match their Quickbooks
|
284 | 298 | counterparts and do not follow PEP8.
|
285 | 299 |
|
|