Exception: ActiveGroonga::KeyOverrideError — activegroonga - Ranguba

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

- (KeyOverrideError) initialize(table, key)

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

- (Object) key (readonly)

Returns the value of attribute key



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

def key
  @key
end

- (Object) table (readonly)

Returns the value of attribute table



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

def table
  @table
end