Class: 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.



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

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.



138
139
140
# File 'lib/groonga/schema.rb', line 138

def name
  @name
end

#tried_table_namesObject (readonly)

Returns the value of attribute tried_table_names.



138
139
140
# File 'lib/groonga/schema.rb', line 138

def tried_table_names
  @tried_table_names
end