Exception: Purview::Exceptions::TableAlreadyAssignedForIndex

Inherits:
Base
  • Object
show all
Defined in:
lib/purview/exceptions/table_already_assigned_for_index.rb

Instance Method Summary collapse

Constructor Details

#initialize(index) ⇒ TableAlreadyAssignedForIndex

Returns a new instance of TableAlreadyAssignedForIndex.



4
5
6
# File 'lib/purview/exceptions/table_already_assigned_for_index.rb', line 4

def initialize(index)
  @index = index
end

Instance Method Details

#messageObject



8
9
10
# File 'lib/purview/exceptions/table_already_assigned_for_index.rb', line 8

def message
  "Table already assigned for index on columns: #{index.table.column_names.join(', ')}"
end