Kaizen
Browse modulesPersistenceFunctions

Function: isPrismaNotFound()

function isPrismaNotFound(error: unknown): boolean;

Defined in: server/persistence/prisma-errors.ts:81

Prisma P2025 — "an operation failed because it depends on one or more records that were required but not found". Also what a tenant-scoped unique-where mutation surfaces as when the row belongs to another tenant (deliberately indistinguishable from "row doesn't exist", so existence never leaks).

Parameters

ParameterType
errorunknown

Returns

boolean

On this page