Exception: Couchbase::Error::Base
- Inherits:
-
StandardError
- Object
- StandardError
- Couchbase::Error::Base
- Defined in:
- ext/couchbase_ext/couchbase_ext.c,
ext/couchbase_ext/couchbase_ext.c
Overview
The base error class
Direct Known Subclasses
Auth, BadEnvironment, BadHandle, BucketNotFound, Busy, ClientNoMemory, ClientTemporaryFail, Connect, DeltaBadval, DlopenFailed, DlsymFailed, DuplicateCommands, DurabilityTooMany, HTTP, Internal, Invalid, InvalidChar, InvalidHostFormat, InvalidUsername, KeyExists, Libcouchbase, Network, NoMatchingServer, NoMemory, NotFound, NotMyVbucket, NotStored, NotSupported, PluginVersionMismatch, Protocol, Range, ServerBug, TemporaryFail, Timeout, TooBig, UnknownCommand, UnknownHost, ValueFormat, View
Instance Attribute Summary collapse
-
#cas ⇒ Fixnum
readonly
The version of the key (
nil
unless accessible). -
#error ⇒ Fixnum
readonly
The underlying libcouchbase library could return one of the following error codes.
-
#inner_exception ⇒ Exception
readonly
The inner exception or
nil
. -
#key ⇒ String
readonly
The key which generated error.
-
#operation ⇒ Symbol
readonly
The operation (
nil
unless accessible). -
#status ⇒ Fixnum
readonly
The HTTP status code.
Instance Attribute Details
#cas ⇒ Fixnum (readonly)
Returns the version of the key (nil
unless accessible).
#error ⇒ Fixnum (readonly)
The underlying libcouchbase library could return one of the following error codes. The ruby client will wrap these errors into appropriate exception class, derived from Couchbase::Error::Base.
- 0x00
-
LCB_SUCCESS (Success)
- 0x01
-
LCB_AUTH_CONTINUE (Continue authentication)
- 0x02
-
LCB_AUTH_ERROR (Authentication error)
- 0x03
-
LCB_DELTA_BADVAL (Not a number)
- 0x04
-
LCB_E2BIG (Object too big)
- 0x05
-
LCB_EBUSY (Too busy)
- 0x06
-
LCB_EINTERNAL (Internal error)
- 0x07
-
LCB_EINVAL (Invalid arguments)
- 0x08
-
LCB_ENOMEM (Out of memory)
- 0x09
-
LCB_ERANGE (Invalid range)
- 0x0a
-
LCB_ERROR (Generic error)
- 0x0b
-
LCB_ETMPFAIL (Temporary failure)
- 0x0c
-
LCB_KEY_EEXISTS (Key exists (with a different CAS value))
- 0x0d
-
LCB_KEY_ENOENT (No such key)
- 0x0e
-
LCB_DLOPEN_FAILED (Failed to open shared object)
- 0x0f
-
LCB_DLSYM_FAILED (Failed to locate the requested cb_symbol in shared object)
- 0x10
-
LCB_NETWORK_ERROR (Network error)
- 0x11
-
LCB_NOT_MY_VBUCKET (The vbucket is not located on this server)
- 0x12
-
LCB_NOT_STORED (Not stored)
- 0x13
-
LCB_NOT_SUPPORTED (Not supported)
- 0x14
-
LCB_UNKNOWN_COMMAND (Unknown command)
- 0x15
-
LCB_UNKNOWN_HOST (Unknown host)
- 0x16
-
LCB_PROTOCOL_ERROR (Protocol error)
- 0x17
-
LCB_ETIMEDOUT (Operation timed out)
- 0x18
-
LCB_CONNECT_ERROR (Connection failure)
- 0x19
-
LCB_BUCKET_ENOENT (No such bucket)
- 0x1a
-
LCB_CLIENT_ENOMEM (Out of memory on the client)
- 0x1b
-
LCB_CLIENT_ETMPFAIL (Temporary failure on the client)
- 0x1c
-
LCB_EBADHANDLE (Invalid handle type)
- 0x1d
-
LCB_SERVER_BUG (Server bug)
- 0x1e
-
LCB_PLUGIN_VERSION_MISMATCH (Plugin version mismatch)
- 0x1f
-
LCB_INVALID_HOST_FORMAT (Invalid host format)
- 0x20
-
LCB_INVALID_CHAR (Invalid character)
#inner_exception ⇒ Exception (readonly)
Returns the inner exception or nil
. Some exceptions like ValueFormat wrap the original exception.
#key ⇒ String (readonly)
Returns the key which generated error.
#operation ⇒ Symbol (readonly)
Returns the operation (nil
unless accessible).
#status ⇒ Fixnum (readonly)
Returns The HTTP status code.