1import * as Data from "effect/Data";
2
3/**
4 * A cursor-paginated listing answered `hasMore: true` without a next cursor.
5 *
6 * The hand-rolled client raised this as a protocol error; distilled returns
7 * the page as the server sent it, so every walk raises it inline instead of
8 * reading the malformed page as the end of the list — a truncated listing
9 * would make the adoption and uniqueness guards mint duplicates or miss live
10 * resources.
11 */
12export class PrismaPaginationError extends Data.TaggedError(
13 "PrismaPaginationError",
14)<{
15 message: string;
16}> {}