diff options
Diffstat (limited to 'requests/exceptions.py')
-rw-r--r-- | requests/exceptions.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/requests/exceptions.py b/requests/exceptions.py index 22207e3..cd3c760 100644 --- a/requests/exceptions.py +++ b/requests/exceptions.py @@ -7,6 +7,7 @@ requests.exceptions This module contains the set of Requests' exceptions. """ +from .packages.urllib3.exceptions import HTTPError as BaseHTTPError class RequestException(IOError): @@ -27,6 +28,10 @@ class ConnectionError(RequestException): """A Connection error occurred.""" +class ProxyError(ConnectionError): + """A proxy error occurred.""" + + class SSLError(ConnectionError): """An SSL error occurred.""" @@ -57,3 +62,7 @@ class InvalidURL(RequestException, ValueError): class ChunkedEncodingError(RequestException): """The server declared chunked encoding but sent an invalid chunk.""" + + +class ContentDecodingError(RequestException, BaseHTTPError): + """Failed to decode response content""" |