Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
_exceptions.cpython-313.pyc42 linesDownload Raw Back to __pycache__
1�

2q�j����Sr"SS\5r"SS\5r"SS\5r"SS\5r"S	S3\5r"SS\5r"S
S\5r"SS\5r	g)ae4_exceptions.py5websocket - WebSocket client library for Python6 7Copyright 2025 engn33r8 9Licensed under the Apache License, Version 2.0 (the "License");10you may not use this file except in compliance with the License.11You may obtain a copy of the License at12 13    http://www.apache.org/licenses/LICENSE-2.014 15Unless required by applicable law or agreed to in writing, software16distributed under the License is distributed on an "AS IS" BASIS,17WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.18See the License for the specific language governing permissions and19limitations under the License.20c��\rSrSrSrSrg)�WebSocketException�z21WebSocket exception class.22�N��__name__�23__module__�__qualname__�__firstlineno__�__doc__�__static_attributes__r��[D:\code\apps\devtools\python\user_packages\Python313\site-packages\websocket/_exceptions.pyrr����	r
rc��\rSrSrSrSrg)�WebSocketProtocolException�zF24If the WebSocket protocol is invalid, this exception will be raised.25rNrrr
rrrrr
rc��\rSrSrSrSrg)�WebSocketPayloadException�%zE26If the WebSocket payload is invalid, this exception will be raised.27rNrrr
rrr%rr
rc��\rSrSrSrSrg)�"WebSocketConnectionClosedException�-ze28If remote host closed the connection or some network error happened,29this exception will be raised.30rNrrr
rrr-s���31	r
rc��\rSrSrSrSrg)�WebSocketTimeoutException�6zT32WebSocketTimeoutException will be raised at socket timeout during read/write data.33rNrrr
rrr6rr
rc��\rSrSrSrSrg)�WebSocketProxyException�>zC34WebSocketProxyException will be raised when proxy error occurred.35rNrrr
rrr>rr
rc�B^�\rSrSrSrSS\S\4U4SjjjrSrU=r	$)�WebSocketBadStatusException�FzS36WebSocketBadStatusException will be raised when we get bad handshake status code.37�message�status_codec�H>�[TU]U5 X lX@lXPlg)N)�super�__init__r#�resp_headers�	resp_body)�selfr"r#�status_messager'r(�	__class__s      �rr&�$WebSocketBadStatusException.__init__Ks#���	����!�&��(��"�r
)r(r'r#)NNN)38rrr	r39r�str�intr&r�
__classcell__)r+s@rr r Fs/�������
#��#��#�#r
r c��\rSrSrSrSrg)�WebSocketAddressException�YzO40If the websocket address info cannot be found, this exception will be raised.41rNrrr
rr1r1Yrr
r1N)42r�	Exceptionrrrrrrr r1rr
r�<module>r4sq���(	��	�	�!3�	�	� 2�	�	�);�	�	� 2�	�	�0�	�#�"4�#�&	� 2�	r
codekingpro/portable-devtools · Team Ai