Exception: JobIteration::ActiveRecordCursor::ConditionNotSupportedError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/job-iteration/active_record_cursor.rb

Instance Method Summary collapse

Constructor Details

#initializeConditionNotSupportedError

Returns a new instance of ConditionNotSupportedError.



13
14
15
16
17
18
# File 'lib/job-iteration/active_record_cursor.rb', line 13

def initialize
  super(
    "The relation cannot use ORDER BY or LIMIT due to the way how iteration with a cursor is designed. " \
      "You can use other ways to limit the number of rows, e.g. a WHERE condition on the primary key column."
  )
end