Warnings
- exception couchbase.warnings.CouchbaseApplicabilityWarning
An option key the protocol in use cannot act on, so that setting it changes nothing.
Separate from
CouchbaseOptionWarningso that configuration shared between protocols can silence this one and still hear about a misspelled key.
- exception couchbase.warnings.CouchbaseDeprecationWarning
Something the SDK still supports and will stop supporting.
- exception couchbase.warnings.CouchbaseOptionWarning
An option key the options class does not carry, naming the closest key it does carry where there is one.
Emitted when option validation is
warn;strictraisesInvalidArgumentExceptioninstead. SeePYCBC_OPTION_VALIDATION.
- exception couchbase.warnings.CouchbaseWarning
The base of every warning the SDK emits, so that one filter covers all of them.
It derives from
UserWarningrather thanDeprecationWarningso that Python’s default filters show it: they hide aDeprecationWarningunless it is raised from__main__.Example
Turn every SDK warning into an error, as a test suite might:
import warnings from couchbase.warnings import CouchbaseWarning warnings.simplefilter('error', CouchbaseWarning)