Exceptions

Base

CouchbaseException

class couchbase.exceptions.CouchbaseException(base=None, message=None, context=None, error_code=None, exc_info=None)

Common

AmbiguousTimeoutException

class couchbase.exceptions.AmbiguousTimeoutException(base=None, message=None, context=None, error_code=None, exc_info=None)

InternalServerFailureException

class couchbase.exceptions.InternalServerFailureException(base=None, message=None, context=None, error_code=None, exc_info=None)

Raised when the server service provides error w/in below ranges. Query: Error range 5xxx Analytics: Error range 25xxx KV: error code ERR_INTERNAL (0x84) Search: HTTP 500

InvalidArgumentException

class couchbase.exceptions.InvalidArgumentException(msg=None, **kwargs)

Raised when a provided argmument has an invalid value and/or invalid type.

UnAmbiguousTimeoutException

class couchbase.exceptions.UnAmbiguousTimeoutException(base=None, message=None, context=None, error_code=None, exc_info=None)

Authentication

AuthenticationException

class couchbase.exceptions.AuthenticationException(base=None, message=None, context=None, error_code=None, exc_info=None)

Indicates that an error occurred authenticating the user to the cluster.

Bucket

BucketNotFoundException

class couchbase.exceptions.BucketNotFoundException(base=None, message=None, context=None, error_code=None, exc_info=None)

Indicates that the bucket being referenced does not exist.

Key-Value

DocumentExistsException

class couchbase.exceptions.DocumentExistsException(base=None, message=None, context=None, error_code=None, exc_info=None)

Indicates that the referenced document exists already, but the operation was not expecting it to exist.

DocumentLockedException

class couchbase.exceptions.DocumentLockedException(base=None, message=None, context=None, error_code=None, exc_info=None)

Indicates that the referenced document could not be used as it is currently locked, likely by another actor in the system.

DocumentNotFoundException

class couchbase.exceptions.DocumentNotFoundException(base=None, message=None, context=None, error_code=None, exc_info=None)

Indicates that the referenced document does not exist.

DurabilityImpossibleException

class couchbase.exceptions.DurabilityImpossibleException(base=None, message=None, context=None, error_code=None, exc_info=None)

Given durability requirements are impossible to achieve

DurabilityInvalidLevelException

class couchbase.exceptions.DurabilityInvalidLevelException(base=None, message=None, context=None, error_code=None, exc_info=None)

Given durability level is invalid

DurabilitySyncWriteAmbiguousException

class couchbase.exceptions.DurabilitySyncWriteAmbiguousException(base=None, message=None, context=None, error_code=None, exc_info=None)

There is a synchronous mutation pending for given key The SyncWrite request has not completed in the specified time and has ambiguous result - it may Succeed or Fail; but the final value is not yet known

DurabilitySyncWriteInProgressException

class couchbase.exceptions.DurabilitySyncWriteInProgressException(base=None, message=None, context=None, error_code=None, exc_info=None)

Returned if an attempt is made to mutate a key which already has a SyncWrite pending. Client would typically retry (possibly with backoff). Similar to ELOCKED

Subdocument

InvalidValueException

class couchbase.exceptions.InvalidValueException(base=None, message=None, context=None, error_code=None, exc_info=None)

Indicates the provided value was invalid for the operation.

PathExistsException

class couchbase.exceptions.PathExistsException(base=None, message=None, context=None, error_code=None, exc_info=None)

Indicates that the reference path already existed, but the operation expected that it did not.

PathMismatchException

class couchbase.exceptions.PathMismatchException(base=None, message=None, context=None, error_code=None, exc_info=None)

Indicates that the referenced path made incorrect assumptions about the structure of a document, for instance attempting to access a field as an object when in fact it is an array.

PathNotFoundException

class couchbase.exceptions.PathNotFoundException(base=None, message=None, context=None, error_code=None, exc_info=None)

Indicates that the reference path was not found.

Warning

This is a deprecated class, use InvalidValueException instead.

SubdocCantInsertValueException

couchbase.exceptions.SubdocCantInsertValueException

alias of couchbase.exceptions.InvalidValueException

Warning

This is a deprecated class, use PathMismatchException instead.

SubdocPathMismatchException

couchbase.exceptions.SubdocPathMismatchException

alias of couchbase.exceptions.PathMismatchException