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(message=None, **kwargs)
InternalServerFailureException
- class couchbase.exceptions.InternalServerFailureException(message=None, **kwargs)
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(message=None, **kwargs)
Raised when a provided argmument has an invalid value and/or invalid type.
UnAmbiguousTimeoutException
- class couchbase.exceptions.UnAmbiguousTimeoutException(message=None, **kwargs)
Authentication
AuthenticationException
- class couchbase.exceptions.AuthenticationException(message=None, **kwargs)
Indicates that an error occurred authenticating the user to the cluster.
Bucket
BucketNotFoundException
- class couchbase.exceptions.BucketNotFoundException(message=None, **kwargs)
Indicates that the bucket being referenced does not exist.
Key-Value
DocumentExistsException
- class couchbase.exceptions.DocumentExistsException(message=None, **kwargs)
Indicates that the referenced document exists already, but the operation was not expecting it to exist.
DocumentLockedException
- class couchbase.exceptions.DocumentLockedException(message=None, **kwargs)
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(message=None, **kwargs)
Indicates that the referenced document does not exist.
DurabilityImpossibleException
- class couchbase.exceptions.DurabilityImpossibleException(message=None, **kwargs)
Given durability requirements are impossible to achieve
DurabilityInvalidLevelException
- class couchbase.exceptions.DurabilityInvalidLevelException(message=None, **kwargs)
Given durability level is invalid
DurabilitySyncWriteAmbiguousException
- class couchbase.exceptions.DurabilitySyncWriteAmbiguousException(message=None, **kwargs)
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(message=None, **kwargs)
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(message=None, **kwargs)
Indicates the provided value was invalid for the operation.
PathExistsException
- class couchbase.exceptions.PathExistsException(message=None, **kwargs)
Indicates that the reference path already existed, but the operation expected that it did not.
PathMismatchException
- class couchbase.exceptions.PathMismatchException(message=None, **kwargs)
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(message=None, **kwargs)
Indicates that the reference path was not found.
Warning
This is a deprecated class, use InvalidValueException
instead.
SubdocCantInsertValueException
- couchbase.exceptions.SubdocCantInsertValueException
alias of
InvalidValueException
Warning
This is a deprecated class, use PathMismatchException
instead.
SubdocPathMismatchException
- couchbase.exceptions.SubdocPathMismatchException
alias of
PathMismatchException