-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwarning.py
45 lines (31 loc) · 1.07 KB
/
warning.py
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
"""
Warnings emitted during the weaver flow.
"""
class WeaverWarning(Warning):
"""
Base class of :class:`Warning` defined by :mod:`weaver` package.
"""
class UndefinedContainerWarning(WeaverWarning):
"""
Warn when settings or the registry could not be resolved from an explicit container reference.
"""
class TimeZoneInfoAlreadySetWarning(WeaverWarning):
"""
Warn when trying to obtain a localized time with already defined time-zone info.
"""
class DisabledSSLCertificateVerificationWarning(WeaverWarning):
"""
Warn when an option to disable SSL certificate verification is employed for some operations.
"""
class UnsupportedOperationWarning(WeaverWarning):
"""
Warn about an operation not yet implemented or unsupported according to context.
"""
class NonBreakingExceptionWarning(WeaverWarning):
"""
Warn about an exception that is handled (ex: caught in try/except block) but still unexpected.
"""
class MissingParameterWarning(WeaverWarning):
"""
Warn about an expected but missing parameter.
"""