summaryrefslogtreecommitdiff
path: root/dexcom_reader/constants.py
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2017-02-10 23:19:10 +0000
committerAndrew Cady <d@jerkface.net>2017-02-10 23:19:10 +0000
commit6b735adbead93403c46de690f4c225d0d347f452 (patch)
tree78c6f11597937fdea1f66f56f5dcd0382c24eab0 /dexcom_reader/constants.py
parentaed1997320c94a8acb7ad051e6297fdd112322b7 (diff)
throw a specific exception for serial port errors
Diffstat (limited to 'dexcom_reader/constants.py')
-rw-r--r--dexcom_reader/constants.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/dexcom_reader/constants.py b/dexcom_reader/constants.py
index 628d325..08c62ec 100644
--- a/dexcom_reader/constants.py
+++ b/dexcom_reader/constants.py
@@ -8,6 +8,8 @@ class Error(Exception):
8class CrcError(Error): 8class CrcError(Error):
9 """Failed to CRC properly.""" 9 """Failed to CRC properly."""
10 10
11class SerialPortError(Error):
12 """Error communicating with Dexcom receiver."""
11 13
12DEXCOM_G4_USB_VENDOR = 0x22a3 14DEXCOM_G4_USB_VENDOR = 0x22a3
13DEXCOM_G4_USB_PRODUCT = 0x0047 15DEXCOM_G4_USB_PRODUCT = 0x0047