Exception: CursorPager::CursorNotFoundError
- 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 Attribute Summary collapse
-
#cursor ⇒ Object
readonly
Returns the value of attribute cursor.
Instance Method Summary collapse
-
#initialize(cursor) ⇒ CursorNotFoundError
constructor
A new instance of CursorNotFoundError.
Constructor Details
#initialize(cursor) ⇒ CursorNotFoundError
Returns a new instance of CursorNotFoundError.
9 10 11 12 13 14 |
# File 'lib/cursor_pager/cursor_not_found_error.rb', line 9 def initialize(cursor) @cursor = cursor = "Couldn't find item for cursor: #{cursor}." super() end |
Instance Attribute Details
#cursor ⇒ Object (readonly)
Returns the value of attribute cursor.
7 8 9 |
# File 'lib/cursor_pager/cursor_not_found_error.rb', line 7 def cursor @cursor end |