You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
637 B
29 lines
637 B
14 years ago
|
# -*- 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 HTTPError(RequestException):
|
||
|
"""An HTTP error occurred."""
|
||
|
|
||
|
class ConnectionError(RequestException):
|
||
|
"""A Connection error occurred."""
|
||
|
|
||
|
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."""
|