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, BadHandle, BucketNotFound, Busy, ClientNoMemory, ClientTemporaryFail, Connect, DeltaBadval, DlopenFailed, DlsymFailed, HTTP, Internal, Invalid, KeyExists, Libcouchbase, Network, NoMemory, NotFound, NotMyVbucket, NotStored, NotSupported, Protocol, Range, TemporaryFail, Timeout, TooBig, UnknownCommand, UnknownHost, ValueFormat, View
Instance Attribute Summary (collapse)
-
- (Fixnum) cas
readonly
The version of the key (nil unless accessible).
-
- (Fixnum) error
readonly
The underlying libcouchbase library could return one of the following error codes.
-
- (Exception) inner_exception
readonly
The inner exception or nil.
-
- (String) key
readonly
The key which generated error.
-
- (Symbol) operation
readonly
The operation (nil unless accessible).
-
- (Fixnum) status
readonly
The HTTP status code.
Instance Attribute Details
- (Fixnum) cas (readonly)
The version of the key (nil unless accessible)
- (Fixnum) error (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) |
- (Exception) inner_exception (readonly)
The inner exception or nil. Some exceptions like ValueFormat wrap the original exception
- (String) key (readonly)
The key which generated error
- (Symbol) operation (readonly)
The operation (nil unless accessible)
- (Fixnum) status (readonly)
The HTTP status code