Browse modulesPersistenceFunctions
Function: isPrismaExclusionViolation()
function isPrismaExclusionViolation(error: unknown): boolean;Defined in: server/persistence/prisma-errors.ts:95
Postgres 23P01 — exclusion-constraint violation (e.g. a btree_gist no-
overlap constraint). Prisma has no dedicated error code, so this matches the
SQLSTATE / phrase in the wrapped driver error.
Parameters
| Parameter | Type |
|---|---|
error | unknown |
Returns
boolean