Exception: Couchbase::Error::CouchbaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/couchbase/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contextHash (readonly)

Returns attributes associated with the error.

Returns:

  • (Hash)

    attributes associated with the error



22
23
24
# File 'lib/couchbase/errors.rb', line 22

def context
  @context
end

Instance Method Details

#to_sObject



24
25
26
# File 'lib/couchbase/errors.rb', line 24

def to_s
  defined?(@context) ? "#{super}, context=#{JSON.generate(@context)}" : super
end