mirror of
https://github.com/morpheus65535/bazarr.git
synced 2024-11-12 02:22:56 +08:00
20 lines
378 B
Python
20 lines
378 B
Python
|
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.
|
||
|
"""
|