mirror of https://github.com/conqp/rcon
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
692 B
33 lines
692 B
"""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."""
|
|
|