HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/future/backports/urllib/__pycache__/error.cpython-310.pyc
o

,�]�
�@spdZddlmZmZmZddlmZddlmZ	gd�Z
Gdd�de�ZGdd	�d	ee	j
�ZGd
d�de�ZdS)
a�Exception classes raised by urllib.

The base exception class is URLError, which inherits from IOError.  It
doesn't define any behavior of its own, but is the base class for all
exceptions defined in this package.

HTTPError is an exception class that is also a valid HTTP response
instance.  It behaves this way because HTTP protocol errors are valid
responses, with a status code, headers, and a body.  In some contexts,
an application may want to handle an exception like a regular
response.
�)�absolute_import�division�unicode_literals)�standard_library)�response)�URLError�	HTTPError�ContentTooShortErrorc@seZdZddd�Zdd�ZdS)rNcCs$|f|_||_|dur||_dSdS�N)�args�reason�filename)�selfrr
�r�?/usr/lib/python3/dist-packages/future/backports/urllib/error.py�__init__ s

�zURLError.__init__cCs
d|jS)Nz<urlopen error %s>)r�rrrr�__str__&s
zURLError.__str__r
)�__name__�
__module__�__qualname__rrrrrrrs
rc@s<eZdZdZejjZdd�Zdd�Ze	dd��Z
dd	�Zd
S)rzBRaised when HTTP error occurs, but also acts like non-error returncCs>||_||_||_||_||_|dur|�||||�dSdSr
)�code�msg�hdrs�fpr
�_HTTPError__super_init)r�urlrrrrrrrr-s�zHTTPError.__init__cCsd|j|jfS)NzHTTP Error %s: %s)rrrrrrr:szHTTPError.__str__cC�|jSr
)rrrrrr?szHTTPError.reasoncCrr
)rrrrr�infoCszHTTPError.infoN)rrr�__doc__�urllib_response�
addinfourlrrr�propertyrrrrrrr)s

rc@seZdZdd�ZdS)r	cCst�||�||_dSr
)rr�content)r�messager#rrrrIs
zContentTooShortError.__init__N)rrrrrrrrr	Hsr	N)r�
__future__rrr�futurer�future.backports.urllibrr �__all__�IOErrorrr!rr	rrrr�<module>s