Exception: Tabulatr::UnexpectedSearchResultError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tabulatr/utility/unexpected_search_result_error.rb

Class Method Summary collapse

Class Method Details

.raise_error(klass) ⇒ Object

Raises:

  • (self)


4
5
6
7
# File 'lib/tabulatr/utility/unexpected_search_result_error.rb', line 4

def self.raise_error(klass)
  raise self, "Your search block returned a '#{klass}'.\n
    You need to return a String, a Hash, an Array or an ActiveRecord::Relation instead."
end