
    ,h                         d Z  G d de      Z G d de      Z G d de      Z G d de      Z G d	 d
e      Z G d de      Z G d de      Z G d de      Z	y)ae  
_exceptions.py
websocket - WebSocket client library for Python

Copyright 2024 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

    http://www.apache.org/licenses/LICENSE-2.0

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.
c                       e Zd ZdZy)WebSocketExceptionz$
    WebSocket exception class.
    N__name__
__module____qualname____doc__     W/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/websocket/_exceptions.pyr   r           	r
   r   c                       e Zd ZdZy)WebSocketProtocolExceptionzN
    If the WebSocket protocol is invalid, this exception will be raised.
    Nr   r	   r
   r   r   r      r   r
   r   c                       e Zd ZdZy)WebSocketPayloadExceptionzM
    If the WebSocket payload is invalid, this exception will be raised.
    Nr   r	   r
   r   r   r   %   r   r
   r   c                       e Zd ZdZy)"WebSocketConnectionClosedExceptionzq
    If remote host closed the connection or some network error happened,
    this exception will be raised.
    Nr   r	   r
   r   r   r   -   s    
 	r
   r   c                       e Zd ZdZy)WebSocketTimeoutExceptionz\
    WebSocketTimeoutException will be raised at socket timeout during read/write data.
    Nr   r	   r
   r   r   r   6   r   r
   r   c                       e Zd ZdZy)WebSocketProxyExceptionzK
    WebSocketProxyException will be raised when proxy error occurred.
    Nr   r	   r
   r   r   r   >   r   r
   r   c                   4     e Zd ZdZ	 	 	 ddedef fdZ xZS )WebSocketBadStatusExceptionz[
    WebSocketBadStatusException will be raised when we get bad handshake status code.
    messagestatus_codec                 N    t         |   |       || _        || _        || _        y )N)super__init__r   resp_headers	resp_body)selfr   r   status_messager   r   	__class__s         r   r   z$WebSocketBadStatusException.__init__K   s)     	!&("r
   )NNN)r   r   r   r   strintr   __classcell__)r"   s   @r   r   r   F   s/     ## # #r
   r   c                       e Zd ZdZy)WebSocketAddressExceptionzW
    If the websocket address info cannot be found, this exception will be raised.
    Nr   r	   r
   r   r'   r'   Y   r   r
   r'   N)
r   	Exceptionr   r   r   r   r   r   r   r'   r	   r
   r   <module>r)      sq   (	 		!3 		 2 		); 		 2 		0 	#"4 #&	 2 	r
   