Exception: ActiveGroonga::KeyOverrideError
- Defined in:
- lib/active_groonga/error.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(table, key) ⇒ KeyOverrideError
constructor
A new instance of KeyOverrideError.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
33 34 35 |
# File 'lib/active_groonga/error.rb', line 33 def key @key end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
33 34 35 |
# File 'lib/active_groonga/error.rb', line 33 def table @table end |