Exception: EasyRedis::FieldNotSearchable

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/easyredis.rb

Overview

exception that indicates that the given field has not been indexed for sorting/searching

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ FieldNotSearchable

Returns a new instance of FieldNotSearchable.



86
87
88
# File 'lib/easyredis.rb', line 86

def initialize(field)
  @message = "field '#{field.to_s}' not searchable"
end

Instance Method Details

#to_sObject



90
91
92
# File 'lib/easyredis.rb', line 90

def to_s
  @message
end