Exception: Couchbase::Error::Base

Inherits:
Exception
  • Object
show all
Defined in:
lib/couchbase/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#casObject

Returns the value of attribute cas.



21
22
23
# File 'lib/couchbase/error.rb', line 21

def cas
  @cas
end

#errorObject

Returns the value of attribute error.



21
22
23
# File 'lib/couchbase/error.rb', line 21

def error
  @error
end

#inner_exceptionObject

Returns the value of attribute inner_exception.



21
22
23
# File 'lib/couchbase/error.rb', line 21

def inner_exception
  @inner_exception
end

#keyObject

Returns the value of attribute key.



21
22
23
# File 'lib/couchbase/error.rb', line 21

def key
  @key
end

#operationObject

Returns the value of attribute operation.



21
22
23
# File 'lib/couchbase/error.rb', line 21

def operation
  @operation
end

#statusObject

Returns the value of attribute status.



21
22
23
# File 'lib/couchbase/error.rb', line 21

def status
  @status
end

Instance Method Details

#to_sObject



23
24
25
26
27
28
29
# File 'lib/couchbase/error.rb', line 23

def to_s
  if inner_exception
    inner_exception.to_s
  else
    super
  end
end