summaryrefslogtreecommitdiff
path: root/requests/exceptions.py
diff options
context:
space:
mode:
authorJoshua Gourneau <josh@gourneau.com>2012-03-15 00:57:29 -0700
committerJoshua Gourneau <josh@gourneau.com>2012-03-15 00:57:29 -0700
commit1a5a8ae4950da0139a5081d41d9fb00ab73d91fd (patch)
tree34cdbfe82b5ffeefa7645f48bda86df5dc66d37f /requests/exceptions.py
parent3b17438a4227f105ba0b719904509def94481ff8 (diff)
old version of requests
Diffstat (limited to 'requests/exceptions.py')
-rw-r--r--requests/exceptions.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/requests/exceptions.py b/requests/exceptions.py
new file mode 100644
index 0000000..c08c614
--- /dev/null
+++ b/requests/exceptions.py
@@ -0,0 +1,26 @@
+# -*- 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."""
+
+class TooManyRedirects(RequestException):
+ """Too many redirects."""