Exception: TableStructure::Schema::Definition::Columns::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/table_structure/schema/definition/columns/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_message, schema_name, definition_index) ⇒ Error

Returns a new instance of Error.



10
11
12
13
14
# File 'lib/table_structure/schema/definition/columns/error.rb', line 10

def initialize(error_message, schema_name, definition_index)
  @schema_name = schema_name
  @definition_index = definition_index
  super("#{error_message} [#{schema_name}] defined position of column(s): #{definition_index + 1}")
end

Instance Attribute Details

#definition_indexObject (readonly)

Returns the value of attribute definition_index.



8
9
10
# File 'lib/table_structure/schema/definition/columns/error.rb', line 8

def definition_index
  @definition_index
end

#schema_nameObject (readonly)

Returns the value of attribute schema_name.



8
9
10
# File 'lib/table_structure/schema/definition/columns/error.rb', line 8

def schema_name
  @schema_name
end