Warnings

exception couchbase.warnings.CouchbaseApplicabilityWarning

An option key the protocol in use cannot act on, so that setting it changes nothing.

Separate from CouchbaseOptionWarning so 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; strict raises InvalidArgumentException instead. See PYCBC_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 UserWarning rather than DeprecationWarning so that Python’s default filters show it: they hide a DeprecationWarning unless 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)