This repository has been archived on 2025-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2025-01-25/mockenv/lib/python3.6/site-packages/ws4py/exc.py
2022-07-22 16:13:59 +05:30

28 lines
823 B
Python

# -*- coding: utf-8 -*-
__all__ = ['WebSocketException', 'FrameTooLargeException', 'ProtocolException',
'UnsupportedFrameTypeException', 'TextFrameEncodingException',
'UnsupportedFrameTypeException', 'TextFrameEncodingException',
'StreamClosed', 'HandshakeError', 'InvalidBytesError']
class WebSocketException(Exception): pass
class ProtocolException(WebSocketException): pass
class FrameTooLargeException(WebSocketException): pass
class UnsupportedFrameTypeException(WebSocketException): pass
class TextFrameEncodingException(WebSocketException): pass
class InvalidBytesError(WebSocketException): pass
class StreamClosed(Exception): pass
class HandshakeError(WebSocketException):
def __init__(self, msg):
self.msg = msg
def __str__(self):
return self.msg