mirror of
https://github.com/kennethreitz/requests3.git
synced 2026-06-05 23:10:16 +00:00
26 lines
596 B
Python
26 lines
596 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
requests.exceptions
|
|
~~~~~~~~~~~~~~~~~~~
|
|
|
|
This module contains the set of Requests' exceptions.
|
|
|
|
"""
|
|
|
|
class RequestException(Exception):
|
|
"""There was an ambiguous exception that occurred 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 TooManyRedirects(RequestException):
|
|
"""Too many redirects."""
|