
    g
                        d Z ddlZddlZ G d de      Z G d de      Z G d de      Z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	j                  d       e	j                  d        edd d!      Zej                  d"k(  r.e	j                   ed#             ej                   ed#             ej                  ej                  ej                   ej"                  hZ	 eefZy)$z<Collection of exceptions raised and/or processed by Cheroot.    Nc                       e Zd ZdZy)MaxSizeExceededzException 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__     #/opt/Tautulli/lib/cheroot/errors.pyr   r      s    r   r   c                       e Zd ZdZy)
NoSSLErrorz>Exception raised when a client speaks HTTP to an HTTPS socket.Nr   r
   r   r   r   r      s    Hr   r   c                       e Zd ZdZy)FatalSSLAlertzCException raised when the SSL implementation signals a fatal alert.Nr   r
   r   r   r   r      s    Mr   r   c                  j    dh}| D ch c]  }t        t        |d       }}t        ||z
        S c c}w )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.
    N)getattrerrnolist)errnamesmissing_attrkunique_numss       r   plat_specific_errorsr      s<     6L4<=q75!T*=K=l*++ >s   0EINTRWSAEINTREPIPEEBADFWSAEBADFENOTSOCKWSAENOTSOCK	ETIMEDOUTWSAETIMEDOUTECONNREFUSEDWSAECONNREFUSED
ECONNRESETWSAECONNRESETECONNABORTEDWSAECONNABORTED	ENETRESETWSAENETRESET	EHOSTDOWNEHOSTUNREACHz	timed outzThe read operation timed outEAGAINEWOULDBLOCKWSAEWOULDBLOCKdarwin
EPROTOTYPE)r	   r   sys	Exceptionr   r   r   r   socket_error_eintrsocket_errors_to_ignoreappendsocket_errors_nonblockingplatformextendENOTCONNr   	ESHUTDOWNr%   $acceptable_sock_shutdown_error_codesBrokenPipeErrorConnectionResetError#acceptable_sock_shutdown_exceptionsr
   r   r   <module>r@      s$   B  
i I INI N	, *':> .Z%/%
    { +   = >0m-  <<8""#7#EF$$%9,%GH 
NN	KK	( $
  (78L&M #r   