summaryrefslogtreecommitdiffstats
path: root/glucometerutils/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'glucometerutils/exceptions.py')
-rw-r--r--glucometerutils/exceptions.py7
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"""