Exception: CursorPager::InvalidCursorError

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

Overview

Will be raise when the cursor couldn’t be parsed.

Instance Method Summary collapse

Constructor Details

#initialize(cursor) ⇒ InvalidCursorError

Returns a new instance of InvalidCursorError.



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

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

  super(message)
end