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:15 -0700
committerSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 13:41:15 -0700
commit4fad8c1375c73a3d4483fe78e4534c7dabc453f5 (patch)
treecd9f3e8c6811892a2cea932b9d1d97b41945b712 /requests/exceptions.py
downloadpython-requests-4fad8c1375c73a3d4483fe78e4534c7dabc453f5.tar
python-requests-4fad8c1375c73a3d4483fe78e4534c7dabc453f5.tar.gz
Imported Upstream version 0.4.1
Diffstat (limited to 'requests/exceptions.py')
-rw-r--r--requests/exceptions.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/requests/exceptions.py b/requests/exceptions.py
new file mode 100644
index 0000000..eff7512
--- /dev/null
+++ b/requests/exceptions.py
@@ -0,0 +1,23 @@
+# -*- coding: utf-8 -*-
+
+"""
+requests.exceptions
+~~~~~~~~~~~~~~~
+
+"""
+
+class RequestException(Exception):
+ """There was an ambiguous exception that occured while handling your
+ request."""
+
+class AuthenticationError(RequestException):
+ """The authentication credentials provided were invalid."""
+
+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."""