Exception: TableStructure::Schema::Definition::Error
- Defined in:
- lib/table_structure/schema/definition/error.rb
Instance Attribute Summary collapse
-
#definition_index ⇒ Object
readonly
Returns the value of attribute definition_index.
-
#schema_name ⇒ Object
readonly
Returns the value of attribute schema_name.
Instance Method Summary collapse
-
#initialize(error_message, schema_name, definition_index) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(error_message, schema_name, definition_index) ⇒ Error
Returns a new instance of Error.
9 10 11 12 13 |
# File 'lib/table_structure/schema/definition/error.rb', line 9 def initialize(, schema_name, definition_index) @schema_name = schema_name @definition_index = definition_index super("#{} [#{schema_name}] defined position of column(s): #{definition_index + 1}") end |
Instance Attribute Details
#definition_index ⇒ Object (readonly)
Returns the value of attribute definition_index.
7 8 9 |
# File 'lib/table_structure/schema/definition/error.rb', line 7 def definition_index @definition_index end |
#schema_name ⇒ Object (readonly)
Returns the value of attribute schema_name.
7 8 9 |
# File 'lib/table_structure/schema/definition/error.rb', line 7 def schema_name @schema_name end |