aboutsummaryrefslogtreecommitdiff
path: root/requests/exceptions.py
blob: c08c61480b307a3d67650c92b83986fcde0adeed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- 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."""