aboutsummaryrefslogtreecommitdiff
path: root/requests/exceptions.py
diff options
context:
space:
mode:
authorSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 13:41:19 -0700
committerSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 13:41:19 -0700
commit1c0a691ebf468d42b7c0d6b0e9daf0b2ff82cc20 (patch)
treee228f79dfbc25cdacb33ce72b76732aec43d29ba /requests/exceptions.py
parentbf12eaaa5428798962777e05fd98be024e0ce27c (diff)
downloadpython-requests-1c0a691ebf468d42b7c0d6b0e9daf0b2ff82cc20.tar
python-requests-1c0a691ebf468d42b7c0d6b0e9daf0b2ff82cc20.tar.gz
Imported Upstream version 0.8.2
Diffstat (limited to 'requests/exceptions.py')
-rw-r--r--requests/exceptions.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/requests/exceptions.py b/requests/exceptions.py
index c08c614..d20a95c 100644
--- a/requests/exceptions.py
+++ b/requests/exceptions.py
@@ -2,25 +2,27 @@
"""
requests.exceptions
-~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~
+
+This module contains the set of Requests' exceptions.
"""
class RequestException(Exception):
- """There was an ambiguous exception that occured while handling your
+ """There was an ambiguous exception that occurred while handling your
request."""
-class AuthenticationError(RequestException):
- """The authentication credentials provided were invalid."""
-
+class HTTPError(RequestException):
+ """An HTTP error occured."""
+
+class ConnectionError(RequestException):
+ """A Connection error occured."""
+
class Timeout(RequestException):
"""The request timed out."""
class URLRequired(RequestException):
"""A valid URL is required to make a request."""
-class InvalidMethod(RequestException):
- """An inappropriate method was attempted."""
-
class TooManyRedirects(RequestException):
"""Too many redirects."""