File: errors.py

package info (click to toggle)
python-aioambient 2024.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 472 kB
  • sloc: python: 755; sh: 41; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""Define package errors."""


class AmbientError(Exception):
    """Define a base error."""

    pass


class RequestError(AmbientError):
    """Define an error related to invalid requests."""

    pass


class WebsocketError(AmbientError):
    """Define an error related to generic websocket errors."""

    pass