Exception: Couchbase::Error::InvalidArgument
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Couchbase::Error::InvalidArgument
- Defined in:
- lib/couchbase/errors.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/errors.rb more...
Instance Attribute Summary collapse
-
#context ⇒ Hash
readonly
Attributes associated with the error.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Hash (readonly)
Returns attributes associated with the error.
31 32 33 |
# File 'lib/couchbase/errors.rb', line 31 def context @context end |
Instance Method Details
#to_s ⇒ Object
[View source]
33 34 35 |
# File 'lib/couchbase/errors.rb', line 33 def to_s defined?(@context) ? "#{super}, context=#{JSON.generate(@context)}" : super end |