From 1c0a691ebf468d42b7c0d6b0e9daf0b2ff82cc20 Mon Sep 17 00:00:00 2001 From: SVN-Git Migration Date: Thu, 8 Oct 2015 13:41:19 -0700 Subject: Imported Upstream version 0.8.2 --- requests/exceptions.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'requests/exceptions.py') 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.""" -- cgit v1.2.3