Exception Objects

exception couchbase.exceptions.CouchbaseError(params=None)[source]

Base exception for Couchbase errors

This is the base class for all exceptions thrown by Couchbase

Exception Attributes

rc

The return code which caused the error

all_results

A MultiResult object, if this exception was thrown as part of a multi-operation. This contains all the operations (including ones which may not have failed)

inner_cause

If this exception was triggered by another exception, it is present here.

key

If applicable, this is the key which failed.

csrc_info

A tuple of (file, line) pointing to a location in the C source code where the exception was thrown (if applicable)

exception couchbase.exceptions.ArgumentError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Invalid argument

A given argument is invalid or must be set

exception couchbase.exceptions.ValueFormatError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Failed to decode or encode value

The following exceptions are caused by the underlying connection.

exception couchbase.exceptions.AuthError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Authentication failed

You provided an invalid username/password combination.

exception couchbase.exceptions.DeltaBadvalError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

The given value is not a number

The server detected that operation cannot be executed with requested arguments. For example, when incrementing not a number.

exception couchbase.exceptions.TooBigError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Object too big

The server reported that this object is too big

exception couchbase.exceptions.BusyError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

The cluster is too busy

The server is too busy to handle your request right now. please back off and try again at a later time.

exception couchbase.exceptions.InternalError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Internal Error

Internal error inside the library. You would have to destroy the instance and create a new one to recover.

exception couchbase.exceptions.InvalidError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Invalid arguments specified

exception couchbase.exceptions.NoMemoryError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

The server ran out of memory

exception couchbase.exceptions.RangeError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

An invalid range specified

exception couchbase.exceptions.LibcouchbaseError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

A generic error

exception couchbase.exceptions.TemporaryFailError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Temporary failure (on server)

The server tried to perform the requested operation, but failed due to a temporary constraint. Retrying the operation may work.

This error may also be delivered if the key being accessed was locked.

exception couchbase.exceptions.KeyExistsError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

The key already exists (with another CAS value)

This exception may be thrown during an add() operation (if the key already exists), or when a CAS is supplied and the server-side CAS differs.

exception couchbase.exceptions.NotFoundError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

The key does not exist

exception couchbase.exceptions.DlopenFailedError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Failed to open shared object

exception couchbase.exceptions.DlsymFailedError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Failed to locate the requested symbol in the shared object

exception couchbase.exceptions.NetworkError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseNetworkError

Network error

A network related problem occured (name lookup, read/write/connect etc)

exception couchbase.exceptions.NotMyVbucketError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

The vbucket is not located on this server

The server who received the request is not responsible for the object anymore. (This happens during changes in the cluster topology)

exception couchbase.exceptions.NotStoredError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

The object was not stored on the server

exception couchbase.exceptions.NotSupportedError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Not supported

The server doesn’t support the requested command. This error differs from couchbase.exceptions.UnknownCommandError by that the server knows about the command, but for some reason decided to not support it.

exception couchbase.exceptions.UnknownCommandError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

The server doesn’t know what that command is

exception couchbase.exceptions.UnknownHostError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseNetworkError

The server failed to resolve the requested hostname

exception couchbase.exceptions.ProtocolError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseNetworkError

Protocol error

There is something wrong with the datastream received from the server

exception couchbase.exceptions.TimeoutError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

The operation timed out

exception couchbase.exceptions.ConnectError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseNetworkError

Failed to connect to the requested server

exception couchbase.exceptions.BucketNotFoundError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

The requested bucket does not exist

exception couchbase.exceptions.ClientNoMemoryError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

The client ran out of memory

exception couchbase.exceptions.ClientTemporaryFailError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Temporary failure (on client)

The client encountered a temporary error (retry might resolve the problem)

exception couchbase.exceptions.BadHandleError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

Invalid handle type

The requested operation isn’t allowed for given type.

exception couchbase.exceptions.HTTPError(params=None)[source]

Bases: couchbase.exceptions.CouchbaseError

HTTP error

Previous topic

Result Objects

Next topic

Transcoder Interface

This Page