The _exceptions.py file

_exceptions.py websocket - WebSocket client library for Python

Copyright 2022 engn33r

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

exception websocket._exceptions.WebSocketAddressException[source]

If the websocket address info cannot be found, this exception will be raised.

exception websocket._exceptions.WebSocketBadStatusException(message, status_code, status_message=None, resp_headers=None)[source]

WebSocketBadStatusException will be raised when we get bad handshake status code.

__init__(message, status_code, status_message=None, resp_headers=None)[source]
exception websocket._exceptions.WebSocketConnectionClosedException[source]

If remote host closed the connection or some network error happened, this exception will be raised.

exception websocket._exceptions.WebSocketException[source]

WebSocket exception class.

exception websocket._exceptions.WebSocketPayloadException[source]

If the WebSocket payload is invalid, this exception will be raised.

exception websocket._exceptions.WebSocketProtocolException[source]

If the WebSocket protocol is invalid, this exception will be raised.

exception websocket._exceptions.WebSocketProxyException[source]

WebSocketProxyException will be raised when proxy error occurred.

exception websocket._exceptions.WebSocketTimeoutException[source]

WebSocketTimeoutException will be raised at socket timeout during read/write data.