Source code for duck.contrib.websockets.exceptions
"""
WebSocket exceptions module.
"""
[docs]
class BaseException(Exception):
"""
Base exception for the websocket-related errors.
"""
[docs]
class ExtensionError(BaseException):
"""
Raised on extension errors.
"""
[docs]
class ProtocolError(BaseException):
"""
Raised on Protocol-based errors.
"""
[docs]
class PayloadTooBig(ProtocolError):
"""
Raised when payload is too big.
"""