class

CryBase::CouchBase::Services::KV::Error

Inherits Exception < Reference < Object

Base exception for any non-Success status returned by the KV service. Subclasses (NotFound, AuthFailed) cover well-known cases; everything else surfaces as a plain Error.

begin
  kv.get("missing")
rescue ex : KV::Error
  ex.status # => KV::Status::KeyNotFound
end

Constructors

new(status : Status, op : String)
Source

Instance methods

status

The protocol status that triggered the exception.

Source