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