aboutsummaryrefslogtreecommitdiff
path: root/requests/exceptions.py
diff options
context:
space:
mode:
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."""