File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/cheroot/__pycache__/errors.cpython-310.pyc
Back
o ;j� � @ s� d Z ddlZddlZG dd� de�ZG dd� de�ZG dd� de�Zd d � Zedd�Zed dddddddddddddddd�Z e � d� e � d� ed d!d"�Zejd#krbe � ed$�� e� ed$�� ejejejejhZ eefZdS )%z<Collection of exceptions raised and/or processed by Cheroot.� Nc @ � e Zd ZdZdS )�MaxSizeExceededz�Exception raised when a client sends more data then allowed under limit. Depends on ``request.body.maxbytes`` config option if used within CherryPy. N��__name__� __module__�__qualname__�__doc__� r r �B/opt/saltstack/salt/lib/python3.10/site-packages/cheroot/errors.pyr � r c @ r )� NoSSLErrorz>Exception raised when a client speaks HTTP to an HTTPS socket.Nr r r r r r r r c @ r )� FatalSSLAlertzCException raised when the SSL implementation signals a fatal alert.Nr r r r r r r r c G s dh}dd� | D �}t || �S )a Return error numbers for all errors in ``errnames`` on this platform. The :py:mod:`errno` module contains different global constants depending on the specific platform (OS). This function will return the list of numeric values for a given list of potential names. Nc S s h | ]}t t|d ��qS )N)�getattr�errno)�.0�kr r r � <setcomp> s z'plat_specific_errors.<locals>.<setcomp>)�list)ZerrnamesZmissing_attrZunique_numsr r r �plat_specific_errors s r ZEINTRZWSAEINTR�EPIPE�EBADFZWSAEBADF�ENOTSOCKZWSAENOTSOCKZ ETIMEDOUTZWSAETIMEDOUTZECONNREFUSEDZWSAECONNREFUSED� ECONNRESETZ WSAECONNRESETZECONNABORTEDZWSAECONNABORTEDZ ENETRESETZWSAENETRESETZ EHOSTDOWNZEHOSTUNREACHz timed outzThe read operation timed out�EAGAIN�EWOULDBLOCKZWSAEWOULDBLOCK�darwinZ EPROTOTYPE)r r �sys� Exceptionr r r r Zsocket_error_eintrZsocket_errors_to_ignore�appendZsocket_errors_nonblocking�platform�extend�ENOTCONNr Z ESHUTDOWNr Z$acceptable_sock_shutdown_error_codes�BrokenPipeError�ConnectionResetErrorZ#acceptable_sock_shutdown_exceptionsr r r r �<module> sX � � �
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings