Exception: Couchbase::Error::InvalidArgument

Inherits:
ArgumentError
  • 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



31
32
33
# File 'lib/couchbase/errors.rb', line 31

def context
  @context
end

Instance Method Details

#to_sObject



33
34
35
# File 'lib/couchbase/errors.rb', line 33

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