File: exception.py

package info (click to toggle)
sonos-websocket 0.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 112 kB
  • sloc: python: 182; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Exceptions used by sonos_websocket."""


class SonosWebsocketError(Exception):
    """Base exception for Sonos websockets."""


class SonosWSConnectionError(SonosWebsocketError):
    """Connection error encountered on a Sonos websocket."""


class Unauthorized(SonosWebsocketError):
    """Authorization rejected when connecting to a Sonos websocket."""


class Unsupported(SonosWebsocketError):
    """Action is unsupported on this device."""