Exception: ActiveGroonga::KeyOverrideError
- Inherits:
-
Error
- Object
- StandardError
- Error
- ActiveGroonga::KeyOverrideError
- Defined in:
- lib/active_groonga/error.rb
Instance Attribute Summary (collapse)
-
- (Object) key
readonly
Returns the value of attribute key.
-
- (Object) table
readonly
Returns the value of attribute table.
Instance Method Summary (collapse)
-
- (KeyOverrideError) initialize(table, key)
constructor
A new instance of KeyOverrideError.
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 |