Exception: ActiveGroonga::KeyOverrideError

Inherits:
Error
  • Object
show all
Defined in:
lib/active_groonga/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table, key) ⇒ KeyOverrideError

Returns a new instance of KeyOverrideError.



34
35
36
37
38
# File 'lib/active_groonga/error.rb', line 34

def initialize(table, key)
  @table = table
  @key = key
  super("can't override existing record key: #{@table}: <#{@key}>")
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



33
34
35
# File 'lib/active_groonga/error.rb', line 33

def key
  @key
end

#tableObject (readonly)

Returns the value of attribute table.



33
34
35
# File 'lib/active_groonga/error.rb', line 33

def table
  @table
end