diff options
Diffstat (limited to 'glucometerutils/exceptions.py')
-rw-r--r-- | glucometerutils/exceptions.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/glucometerutils/exceptions.py b/glucometerutils/exceptions.py index 415c97f..1cc8cfd 100644 --- a/glucometerutils/exceptions.py +++ b/glucometerutils/exceptions.py @@ -46,3 +46,11 @@ class InvalidGlucoseUnit(Error): def __init__(self, unit): super(InvalidGlucoseUnit, self).__init__( 'Invalid glucose unit received:\n%s' % unit) + + +class InvalidDateTime(Error): + """The device has an invalid date/time setting.""" + + def __init__(self): + super(InvalidDateTime, self).__init__( + 'Invalid date and time for device') |