Exception: Groonga::Schema::UnguessableReferenceTable

Inherits:
Error
  • Object
show all
Defined in:
lib/groonga/schema.rb

Overview

参照先のテーブルを推測できないときに発生する。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, tried_table_names) ⇒ UnguessableReferenceTable

Returns a new instance of UnguessableReferenceTable



141
142
143
144
145
146
147
# File 'lib/groonga/schema.rb', line 141

def initialize(name, tried_table_names)
  @name = name
  @tried_table_names = tried_table_names
  super("failed to guess referenced table name " +
        "for reference column: #{@name.inspect}: " +
        "tried table names: #{@tried_table_names.inspect}")
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name



140
141
142
# File 'lib/groonga/schema.rb', line 140

def name
  @name
end

#tried_table_namesObject (readonly)

Returns the value of attribute tried_table_names



140
141
142
# File 'lib/groonga/schema.rb', line 140

def tried_table_names
  @tried_table_names
end