aboutsummaryrefslogtreecommitdiff
path: root/urllib3/exceptions.py
diff options
context:
space:
mode:
authorDaniele Tricoli <eriol@mornie.org>2015-10-09 23:19:30 +0200
committerDaniele Tricoli <eriol@mornie.org>2015-10-09 23:19:30 +0200
commitcd2a4010a9e1356c36cfb42b57501343c29e2608 (patch)
tree81af3946a53bb27e34e85eb28035ace8c3e7b27e /urllib3/exceptions.py
parentebc01af6ebb87c1e27e50b4ea572b8c1a20e70b0 (diff)
parent7db0aa9b18e70f43ef0bfcdec7f223e5b681aaf0 (diff)
downloadpython-urllib3-cd2a4010a9e1356c36cfb42b57501343c29e2608.tar
python-urllib3-cd2a4010a9e1356c36cfb42b57501343c29e2608.tar.gz
merge patched into master
Diffstat (limited to 'urllib3/exceptions.py')
-rw-r--r--urllib3/exceptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/urllib3/exceptions.py b/urllib3/exceptions.py
index 36ce0d1..9607d65 100644
--- a/urllib3/exceptions.py
+++ b/urllib3/exceptions.py
@@ -112,6 +112,9 @@ class ConnectTimeoutError(TimeoutError):
"Raised when a socket timeout occurs while connecting to a server"
pass
+class NewConnectionError(ConnectTimeoutError, PoolError):
+ "Raised when we fail to establish a new connection. Usually ECONNREFUSED."
+ pass
class EmptyPoolError(PoolError):
"Raised when a pool runs out of connections and no more are allowed."