File: exception.py

package info (click to toggle)
python-logi-circle 0.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300 kB
  • sloc: python: 1,685; xml: 16; sh: 5; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 442 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Custom exceptions"""


class AuthorizationFailed(Exception):
    """When authorization fails for any reason."""


class SessionInvalidated(Exception):
    """When authorization is attempted on an invalidated session."""


class NotAuthorized(Exception):
    """When supplied client ID has not been authorized."""


class SubscriptionClosed(Exception):
    """When requesting the next WebSockets frame on an already closed subscription."""