Ark.EctoCursor.MismatchError exception (ark v0.14.0)

Copy Markdown View Source

Returned or raised when a stored cursor is resumed with a different sort order.

The :stored field holds the sort order of the stored cursor, and the :expected field the sort order given to Ark.EctoCursor.resume/2 or Ark.EctoCursor.resume!/2, both as lists of {direction, field} tuples.

Summary

Types

t()

@type t() :: %Ark.EctoCursor.MismatchError{
  __exception__: term(),
  expected: term(),
  stored: term()
}