Exception: Couchbase::Error::Base

Inherits:
StandardError
  • Object
show all
Defined in:
ext/couchbase_ext/couchbase_ext.c,
ext/couchbase_ext/couchbase_ext.c

Overview

The base error class

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Attribute Details

#casFixnum (readonly)

Returns the version of the key (nil unless accessible)

Returns:

  • (Fixnum)

    the version of the key (nil unless accessible)

Since:

  • 1.0.0

#errorFixnum (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)

Returns:

  • (Fixnum)

    the error code from libcouchbase

Since:

  • 1.0.0

#inner_exceptionException (readonly)

Returns the inner exception or nil. Some exceptions like ValueFormat wrap the original exception

Returns:

  • (Exception)

    the inner exception or nil. Some exceptions like ValueFormat wrap the original exception

Since:

  • 1.2.0.beta4

#keyString (readonly)

Returns the key which generated error

Returns:

  • (String)

    the key which generated error

Since:

  • 1.0.0

#operationSymbol (readonly)

Returns the operation (nil unless accessible)

Returns:

  • (Symbol)

    the operation (nil unless accessible)

Since:

  • 1.0.0

#statusFixnum (readonly)

Returns The HTTP status code

Returns:

  • (Fixnum)

    The HTTP status code

Since:

  • 1.2.0.beta