File: exceptions.py

package info (click to toggle)
python-rcon 2.4.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: python: 1,224; makefile: 42; sh: 6
file content (33 lines) | stat: -rw-r--r-- 692 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
23
24
25
26
27
28
29
30
31
32
33
"""Common exceptions."""

__all__ = [
    "ConfigReadError",
    "EmptyResponse",
    "SessionTimeout",
    "UserAbort",
    "WrongPassword",
]


class ConfigReadError(Exception):
    """Indicates an error while reading the configuration."""


class EmptyResponse(Exception):
    """Indicates an empty response from the server."""


class SessionTimeout(Exception):
    """Indicates that the session timed out."""


class UserAbort(Exception):
    """Indicates that a required action has been aborted by the user."""


class WrongPassword(Exception):
    """Indicates a wrong password."""


class UnexpectedTerminator(Exception):
    """Indicates an unexpected terminator in the response."""