From 4fad8c1375c73a3d4483fe78e4534c7dabc453f5 Mon Sep 17 00:00:00 2001 From: SVN-Git Migration Date: Thu, 8 Oct 2015 13:41:15 -0700 Subject: Imported Upstream version 0.4.1 --- requests/exceptions.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 requests/exceptions.py (limited to 'requests/exceptions.py') 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.""" -- cgit v1.2.3