1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-28 18:48:26 +00:00
bazarr/libs/geventwebsocket/exceptions.py

20 lines
378 B
Python
Raw Normal View History

2018-12-14 12:25:18 +00:00
from socket import error as socket_error
class WebSocketError(socket_error):
"""
Base class for all websocket errors.
"""
class ProtocolError(WebSocketError):
"""
Raised if an error occurs when de/encoding the websocket protocol.
"""
class FrameTooLargeException(ProtocolError):
"""
Raised if a frame is received that is too large.
"""