palazzem / econnect-python

API adapter used to control programmatically an Elmo alarm system
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

Improved Error Handling #65

Closed palazzem closed 3 years ago

palazzem commented 3 years ago

Overview

The previous version was relying only on HTTPError exception from the requests package. To make the code more generic and to raise meaningful exceptions, every method and decorator handles client/server errors.

The following exceptions have been added:

Cases that are covered are the following: