Exception: Riakpb::SiblingError

Inherits:
StandardError
  • Object
show all
Includes:
Util::Translation
Defined in:
lib/riakpb/sibling_error.rb

Overview

Exception raised when the expected response code from Riakpb fails to match the actual response code.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util::Translation

#i18n_scope, #t

Constructor Details

#initialize(key) ⇒ SiblingError

Returns a new instance of SiblingError.



11
12
13
14
# File 'lib/riakpb/sibling_error.rb', line 11

def initialize(key)
  @key = key
  super t("unresolved_siblings", :key => @key)
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



9
10
11
# File 'lib/riakpb/sibling_error.rb', line 9

def key
  @key
end