mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
22 lines
676 B
Python
22 lines
676 B
Python
class HeraldError(Exception):
|
|
"""A generic :py:mod:`royalherald` error."""
|
|
|
|
|
|
class LinkError(HeraldError):
|
|
"""An error for something that happened in a :py:class:`Link`."""
|
|
|
|
|
|
class ServerError(HeraldError):
|
|
"""An error for something that happened in a :py:class:`Server`."""
|
|
|
|
|
|
class ConnectionClosedError(LinkError):
|
|
"""The :py:class:`Link`'s connection was closed unexpectedly. The link can't be used anymore."""
|
|
|
|
|
|
class InvalidServerResponseError(LinkError):
|
|
"""The :py:class:`Server` sent invalid data to the :py:class:`Link`."""
|
|
|
|
|
|
class ResponseError(LinkError):
|
|
"""The :py:class:`Response` was an error, and raise_on_error is :py:const:`True`."""
|