HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //usr/local/lib/python3.9/site-packages/future/backports/urllib/__pycache__/error.cpython-39.pyc
a

q�dg�
�@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||_dS�N)�args�reason�filename)�selfrr
�r�G/usr/local/lib/python3.9/site-packages/future/backports/urllib/error.py�__init__ szURLError.__init__cCs
d|jS)Nz<urlopen error %s>)r�rrrr�__str__&szURLError.__str__)N)�__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:||_||_||_||_||_|dur6|�||||�dSr
)�code�msg�hdrs�fpr
�_HTTPError__super_init)r�urlrrrrrrrr-szHTTPError.__init__cCsd|j|jfS)NzHTTP Error %s: %s)rrrrrrr:szHTTPError.__str__cCs|jSr
)rrrrrr?szHTTPError.reasoncCs|jSr
)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	Hsr	N)r�
__future__rrr�futurerZfuture.backports.urllibrr�__all__�IOErrorrr rr	rrrr�<module>s