class Scalaroid::KeyChangedError

Exception that is thrown if a test_and_set operation on a Scalaris ring fails because the old value did not match the expected value.

Attributes

old_value[R]
raw_result[R]

Public Class Methods

new(raw_result, old_value) click to toggle source
# File lib/scalaroid/errors.rb, line 32
def initialize(raw_result, old_value)
  @raw_result = raw_result
  @old_value = old_value
end

Public Instance Methods

to_s() click to toggle source
# File lib/scalaroid/errors.rb, line 37
def to_s
  @raw_result + ", old value: " + @old_value
end