Kaizen
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

ParameterType
errorunknown

Returns

boolean

On this page