File: exceptions.py

package info (click to toggle)
python-snoo 0.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 272 kB
  • sloc: python: 685; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 524 bytes parent folder | download
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"""