Exception: ActiverecordCursorPagination::CursorError

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

Direct Known Subclasses

InvalidCursorError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = 'Cursor error', cursor = nil) ⇒ CursorError

Returns a new instance of CursorError.



30
31
32
33
# File 'lib/activerecord_cursor_pagination.rb', line 30

def initialize(msg='Cursor error',cursor=nil)
  super(msg)
  @cursor = cursor
end

Instance Attribute Details

#cursorObject (readonly)

Returns the value of attribute cursor.



28
29
30
# File 'lib/activerecord_cursor_pagination.rb', line 28

def cursor
  @cursor
end