File: exceptions.py

package info (click to toggle)
notifications-android-tv 1.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 172 kB
  • sloc: python: 410; makefile: 6; sh: 5
file content (21 lines) | stat: -rw-r--r-- 539 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
"""Exceptions raised by the library."""


class NotificationException(Exception):
    """Base class for all exceptions raised by the library."""


class ConnectError(NotificationException):
    """Exception raised for connection error."""


class InvalidResponse(NotificationException):
    """Exception raised for invalid response."""


class InvalidImage(NotificationException):
    """Exception raised for invalid image."""


class InvalidImageData(NotificationException):
    """Exception raised for invalid image data is provided."""