Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/requests_toolbelt/exceptions.py @ 5:9b1c78e6ba9c draft default tip
"planemo upload commit 6c0a8142489327ece472c84e558c47da711a9142"
author | shellac |
---|---|
date | Mon, 01 Jun 2020 08:59:25 -0400 |
parents | 79f47841a781 |
children |
comparison
equal
deleted
inserted
replaced
4:79f47841a781 | 5:9b1c78e6ba9c |
---|---|
1 # -*- coding: utf-8 -*- | |
2 """Collection of exceptions raised by requests-toolbelt.""" | |
3 | |
4 | |
5 class StreamingError(Exception): | |
6 """Used in :mod:`requests_toolbelt.downloadutils.stream`.""" | |
7 pass | |
8 | |
9 | |
10 class VersionMismatchError(Exception): | |
11 """Used to indicate a version mismatch in the version of requests required. | |
12 | |
13 The feature in use requires a newer version of Requests to function | |
14 appropriately but the version installed is not sufficient. | |
15 """ | |
16 pass | |
17 | |
18 | |
19 class RequestsVersionTooOld(Warning): | |
20 """Used to indicate that the Requests version is too old. | |
21 | |
22 If the version of Requests is too old to support a feature, we will issue | |
23 this warning to the user. | |
24 """ | |
25 pass | |
26 | |
27 | |
28 class IgnoringGAECertificateValidation(Warning): | |
29 """Used to indicate that given GAE validation behavior will be ignored. | |
30 | |
31 If the user has tried to specify certificate validation when using the | |
32 insecure AppEngine adapter, it will be ignored (certificate validation will | |
33 remain off), so we will issue this warning to the user. | |
34 | |
35 In :class:`requests_toolbelt.adapters.appengine.InsecureAppEngineAdapter`. | |
36 """ | |
37 pass |