a
    m¬zfÁ
  ã                   @   sä   d Z ddlZddlZG dd„ deƒZG dd„ deƒZG dd„ deƒZd	d
„ ZeddƒZedddddddddddddddddƒZ	e	 
d¡ e	 
d¡ ed d!d"ƒZejd#krÄe	 ed$ƒ¡ e ed$ƒ¡ ejejejejhZeefZdS )%z<Collection of exceptions raised and/or processed by Cheroot.é    Nc                   @   s   e Zd ZdZdS )Ú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   ú</var/www/media/lib/python3.9/site-packages/cheroot/errors.pyr      s   r   c                   @   s   e Zd ZdZdS )Ú
NoSSLErrorz>Exception raised when a client speaks HTTP to an HTTPS socket.Nr   r   r   r   r	   r
      s   r
   c                   @   s   e Zd ZdZdS )ÚFatalSSLAlertzCException raised when the SSL implementation signals a fatal alert.Nr   r   r   r   r	   r      s   r   c                  G   s    dh}dd„ | 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 ƒ’qS )N)ÚgetattrÚerrno)Ú.0Úkr   r   r	   Ú	<setcomp>   ó    z'plat_specific_errors.<locals>.<setcomp>)Úlist)ZerrnamesZmissing_attrZunique_numsr   r   r	   Úplat_specific_errors   s    r   ZEINTRZWSAEINTRÚEPIPEÚEBADFZWSAEBADFÚENOTSOCKZWSAENOTSOCKZ	ETIMEDOUTZWSAETIMEDOUTZECONNREFUSEDZWSAECONNREFUSEDÚ
ECONNRESETZWSAECONNRESETÚECONNABORTEDZWSAECONNABORTEDZ	ENETRESETZWSAENETRESETZ	EHOSTDOWNZEHOSTUNREACHz	timed outzThe read operation timed outÚEAGAINÚEWOULDBLOCKZWSAEWOULDBLOCKÚdarwinÚ
EPROTOTYPE)r   r   ÚsysÚ	Exceptionr   r
   r   r   Zsocket_error_eintrZsocket_errors_to_ignoreÚappendZsocket_errors_nonblockingÚplatformÚextendÚENOTCONNr   Ú	ESHUTDOWNr   Z$acceptable_sock_shutdown_error_codesÚBrokenPipeErrorÚConnectionResetErrorZ#acceptable_sock_shutdown_exceptionsr   r   r   r	   Ú<module>   s>   
÷

ÿ
ý