Exception: EasyRedis::FieldNotSortable

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) ⇒ FieldNotSortable

Returns a new instance of FieldNotSortable.



75
76
77
# File 'lib/easyredis.rb', line 75

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

Instance Method Details

#to_sObject



79
80
81
# File 'lib/easyredis.rb', line 79

def to_s
  @message
end