3 ‘{©^ã@s\ddlmZddlmZGdd„deƒZGdd„deƒZGdd „d eƒZ Gd d „d e ƒZ Gd d „d eƒZ Gdd„deƒZ Gdd„deƒZ Gdd„deƒZeZGdd„de ƒZGdd„de ƒZGdd„deƒZGdd„deƒZGdd„dee ƒZGdd„deƒZGd d!„d!ee ƒZGd"d#„d#e ƒZGd$d%„d%e ƒZGd&d'„d'eeƒZGd(d)„d)eƒZGd*d+„d+eƒZGd,d-„d-eƒZGd.d/„d/eƒZGd0d1„d1eƒZGd2d3„d3eƒZ Gd4d5„d5eƒZ!Gd6d7„d7eƒZ"Gd8d9„d9eƒZ#Gd:d;„d;eƒZ$Gdd?„d?eƒZ&Gd@dA„dAeeƒZGdBdC„dCeƒZ'GdDdE„dEe(eƒZ)GdFdG„dGeƒZ*GdHdI„dIeƒZ+dJS)Ké)Úabsolute_importé)ÚIncompleteReadc@seZdZdZdS)Ú HTTPErrorz#Base exception used by this module.N)Ú__name__Ú __module__Ú __qualname__Ú__doc__©r r úh/home/sumanth/workspace/ghrepos/quickstart-citrix-adc-appfw/functions/source/appfw/urllib3/exceptions.pyrsrc@seZdZdZdS)Ú HTTPWarningz!Base warning used by this module.N)rrrr r r r r r sr c@s eZdZdZdd„Zdd„ZdS)Ú PoolErrorz/Base exception for errors caused within a pool.cCs||_tj|d||fƒdS)Nz%s: %s)ÚpoolrÚ__init__)ÚselfrÚmessager r r rszPoolError.__init__cCs |jdfS)N)NN)Ú __class__)rr r r Ú __reduce__szPoolError.__reduce__N)rrrr rrr r r r r sr c@s eZdZdZdd„Zdd„ZdS)Ú RequestErrorz8Base exception for PoolErrors that have associated URLs.cCs||_tj|||ƒdS)N)Úurlr r)rrrrr r r r szRequestError.__init__cCs|jd|jdffS)N)rr)rr r r r$szRequestError.__reduce__N)rrrr rrr r r r rsrc@seZdZdZdS)ÚSSLErrorz9Raised when SSL certificate fails in an HTTPS connection.N)rrrr r r r r r)srcs eZdZdZ‡fdd„Z‡ZS)Ú ProxyErrorz,Raised when the connection to a proxy fails.cs"tt|ƒj||f|žŽ||_dS)N)ÚsuperrrZoriginal_error)rrÚerrorÚargs)rr r r1szProxyError.__init__)rrrr rÚ __classcell__r r )rr r.src@seZdZdZdS)Ú DecodeErrorz;Raised when automatic decoding based on Content-Type fails.N)rrrr r r r r r6src@seZdZdZdS)Ú ProtocolErrorz>Raised when something unexpected happens mid-request/response.N)rrrr r r r r r;src@seZdZdZddd„ZdS)Ú MaxRetryErrora Raised when the maximum number of retries is exceeded. :param pool: The connection pool :type pool: :class:`~urllib3.connectionpool.HTTPConnectionPool` :param string url: The requested Url :param exceptions.Exception reason: The underlying error NcCs&||_d||f}tj||||ƒdS)Nz0Max retries exceeded with url: %s (Caused by %r))Úreasonrr)rrrrrr r r rQs zMaxRetryError.__init__)N)rrrr rr r r r rGsrc@seZdZdZddd„ZdS)ÚHostChangedErrorz?Raised when an existing pool gets a request for a foreign host.écCs"d|}tj||||ƒ||_dS)Nz)Tried to open a foreign host with url: %s)rrÚretries)rrrr"rr r r r\szHostChangedError.__init__N)r!)rrrr rr r r r r Ysr c@seZdZdZdS)ÚTimeoutStateErrorz3 Raised when passing an invalid state to a timeout N)rrrr r r r r r#bsr#c@seZdZdZdS)Ú TimeoutErrorzÀ Raised when a socket timeout error occurs. Catching this error will catch both :exc:`ReadTimeoutErrors ` and :exc:`ConnectTimeoutErrors `. N)rrrr r r r r r$hsr$c@seZdZdZdS)ÚReadTimeoutErrorzFRaised when a socket timeout occurs while receiving data from a serverN)rrrr r r r r r%rsr%c@seZdZdZdS)ÚConnectTimeoutErrorz@Raised when a socket timeout occurs while connecting to a serverN)rrrr r r r r r&ysr&c@seZdZdZdS)ÚNewConnectionErrorzHRaised when we fail to establish a new connection. Usually ECONNREFUSED.N)rrrr r r r r r'~sr'c@seZdZdZdS)ÚEmptyPoolErrorzCRaised when a pool runs out of connections and no more are allowed.N)rrrr r r r r r(ƒsr(c@seZdZdZdS)ÚClosedPoolErrorzCRaised when a request enters a pool after the pool has been closed.N)rrrr r r r r r)ˆsr)c@seZdZdZdS)ÚLocationValueErrorzr)rÚschemer)rr r rszProxySchemeUnknown.__init__)rrrr rrr r )rr r>ýsr>cs eZdZdZ‡fdd„Z‡ZS)ÚHeaderParsingErrorzNRaised by assert_header_parsing, but we convert it to a log.warning statement.cs$d|pd|f}tt|ƒj|ƒdS)Nz%s, unparsed data: %rÚUnknown)rr@r)rZdefectsZ unparsed_datar)rr r r szHeaderParsingError.__init__)rrrr rrr r )rr r@sr@c@seZdZdZdS)ÚUnrewindableBodyErrorz9urllib3 encountered an error when trying to rewind a bodyN)rrrr r r r r rBsrBN),Ú __future__rZpackages.six.moves.http_clientrZhttplib_IncompleteReadÚ ExceptionrÚWarningr r rrrrrÚConnectionErrorrr r#r$r%r&r'r(r)Ú ValueErrorr*r+r-r0r1r2r3r4r5r6r7r8r9r=ÚAssertionErrorr>r@rBr r r r ÚsJ