mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
dcebab4c35
I ran the pep8 checker (version 0.6.1) on the code base and tried to clean up as many pep8 errors as I could. Everything except line-width errors are gone (I was worried about messing up the documentor since I haven't fiddled with it).
33 lines
631 B
Python
33 lines
631 B
Python
# -*- 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."""
|