Exception: Groonga::Schema::ColumnCreationWithDifferentOptions

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

Overview

すでに存在するカラムと違うオプションでテーブルを作ろ うとしたときに発生する。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column, options) ⇒ ColumnCreationWithDifferentOptions

Returns a new instance of ColumnCreationWithDifferentOptions



86
87
88
89
90
91
# File 'lib/groonga/schema.rb', line 86

def initialize(column, options)
  @column = column
  @options = options
  super("creating column with different option: " +
        "#{@column.inspect}: #{@options.inspect}")
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column



85
86
87
# File 'lib/groonga/schema.rb', line 85

def column
  @column
end

#optionsObject (readonly)

Returns the value of attribute options



85
86
87
# File 'lib/groonga/schema.rb', line 85

def options
  @options
end