Exception: CursorPager::CursorNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/cursor_pager/cursor_not_found_error.rb

Overview

Will be raised when the cursor’s record couldn’t be found in the relation.

Instance Method Summary collapse

Constructor Details

#initialize(cursor) ⇒ CursorNotFoundError

Returns a new instance of CursorNotFoundError.



6
7
8
9
10
# File 'lib/cursor_pager/cursor_not_found_error.rb', line 6

def initialize(cursor)
  message = "Couldn't find item for cursor: #{cursor}."

  super(message)
end