diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-06-04 23:57:34 +0200 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-06-04 23:57:34 +0200 |
commit | 1d5bade6a90e2a87207d269df8c7bc3f945a9369 (patch) | |
tree | 330b45e34d0b57992a096a15a1d43f07caeda15d /glucometerutils/exceptions.py | |
parent | Abbott devices: add support for using hidapi library. (diff) | |
download | glucometerutils-1d5bade6a90e2a87207d269df8c7bc3f945a9369.tar glucometerutils-1d5bade6a90e2a87207d269df8c7bc3f945a9369.tar.gz glucometerutils-1d5bade6a90e2a87207d269df8c7bc3f945a9369.tar.bz2 glucometerutils-1d5bade6a90e2a87207d269df8c7bc3f945a9369.tar.lz glucometerutils-1d5bade6a90e2a87207d269df8c7bc3f945a9369.tar.xz glucometerutils-1d5bade6a90e2a87207d269df8c7bc3f945a9369.tar.zst glucometerutils-1d5bade6a90e2a87207d269df8c7bc3f945a9369.zip |
Diffstat (limited to 'glucometerutils/exceptions.py')
-rw-r--r-- | glucometerutils/exceptions.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/glucometerutils/exceptions.py b/glucometerutils/exceptions.py index 52c4e94..e1d9200 100644 --- a/glucometerutils/exceptions.py +++ b/glucometerutils/exceptions.py @@ -27,6 +27,13 @@ class ConnectionFailed(Error): self.message = message +class CommandError(Error): + """It was not possible to send a command to the device.""" + + def __init__(self, message="Unable to send command to device."): + self.message = message + + class InvalidResponse(Error): """The response received from the meter was not understood""" |