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 9802004..3e73048 100644
--- a/glucometerutils/exceptions.py
+++ b/glucometerutils/exceptions.py
@@ -13,6 +13,13 @@ class Error(Exception):
return self.message
+class ConnectionFailed(Error):
+ """It was not possible to connect to the meter."""
+
+ def __init__(self):
+ self.message = 'Unable to connect to the meter.'
+
+
class InvalidResponse(Error):
"""The response received from the meter was not understood"""