Exception: TableStructure::Schema::Definition::Columns::Error
- Inherits:
-
Error
- Object
- StandardError
- Error
- TableStructure::Schema::Definition::Columns::Error
- Defined in:
- lib/table_structure/schema/definition/columns/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.
10 11 12 13 14 |
# File 'lib/table_structure/schema/definition/columns/error.rb', line 10 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.
8 9 10 |
# File 'lib/table_structure/schema/definition/columns/error.rb', line 8 def definition_index @definition_index end |
#schema_name ⇒ Object (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 |