/usr/lib/python2.7/dist-packages/ws4redis/exceptions.py is in python-django-websocket-redis 0.4.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #-*- coding: utf-8 -*-
from socket import error as socket_error
from django.http import BadHeaderError
class WebSocketError(socket_error):
"""
Raised when an active websocket encounters a problem.
"""
class FrameTooLargeException(WebSocketError):
"""
Raised if a received frame is too large.
"""
class HandshakeError(BadHeaderError):
"""
Raised if an error occurs during protocol handshake.
"""
class UpgradeRequiredError(HandshakeError):
"""
Raised if protocol must be upgraded.
"""
|