Exception: SpotlightSearch::Exceptions::InvalidColumns

Inherits:
StandardError
  • Object
show all
Defined in:
lib/spotlight_search/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(columns: []) ⇒ InvalidColumns



4
5
6
7
# File 'lib/spotlight_search/exceptions.rb', line 4

def initialize(columns: [])
  message = 'Invalid columns found: ' + columns.map(&:to_s).join(', ')
  super(message)
end