1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
class SnooException(Exception):
"""A base exception for snoo issues."""
class SnooCommandException(SnooException):
"""An exception when the user fails to send a command."""
class InvalidSnooAuth(SnooException):
"""An exception when the user gave the wrong login info."""
class SnooAuthException(SnooException):
"""All other authentication exceptions"""
class SnooDeviceError(SnooException):
"""Issue getting the device"""
class SnooBabyError(SnooException):
"""Issue getting baby status"""
|