| Index: third_party/requests/packages/urllib3/exceptions.py
|
| diff --git a/third_party/requests/packages/urllib3/exceptions.py b/third_party/requests/packages/urllib3/exceptions.py
|
| index 2e2a259cd63a58210de1f1f6c26649ed9b5ce1f9..98ef9abc7f054d586dc44b08f21476f54b00e79b 100644
|
| --- a/third_party/requests/packages/urllib3/exceptions.py
|
| +++ b/third_party/requests/packages/urllib3/exceptions.py
|
| @@ -39,6 +39,11 @@ class SSLError(HTTPError):
|
| pass
|
|
|
|
|
| +class ProxyError(HTTPError):
|
| + "Raised when the connection to a proxy fails."
|
| + pass
|
| +
|
| +
|
| class DecodeError(HTTPError):
|
| "Raised when automatic decoding based on Content-Type fails."
|
| pass
|
| @@ -70,8 +75,29 @@ class HostChangedError(RequestError):
|
| self.retries = retries
|
|
|
|
|
| -class TimeoutError(RequestError):
|
| - "Raised when a socket timeout occurs."
|
| +class TimeoutStateError(HTTPError):
|
| + """ Raised when passing an invalid state to a timeout """
|
| + pass
|
| +
|
| +
|
| +class TimeoutError(HTTPError):
|
| + """ Raised when a socket timeout error occurs.
|
| +
|
| + Catching this error will catch both :exc:`ReadTimeoutErrors
|
| + <ReadTimeoutError>` and :exc:`ConnectTimeoutErrors <ConnectTimeoutError>`.
|
| + """
|
| + pass
|
| +
|
| +
|
| +class ReadTimeoutError(TimeoutError, RequestError):
|
| + "Raised when a socket timeout occurs while receiving data from a server"
|
| + pass
|
| +
|
| +
|
| +# This timeout error does not have a URL attached and needs to inherit from the
|
| +# base HTTPError
|
| +class ConnectTimeoutError(TimeoutError):
|
| + "Raised when a socket timeout occurs while connecting to a server"
|
| pass
|
|
|
|
|
|
|