MCPcopy
hub / github.com/sequelize/sequelize / UniqueConstraintError

Class UniqueConstraintError

types/lib/errors.d.ts:162–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 * Thrown when a unique constraint is violated in the database
161 */
162export class UniqueConstraintError extends ValidationError implements CommonErrorProperties {
163 public readonly parent: Error;
164 public readonly original: Error;
165 public readonly sql: string;
166 public readonly fields: { [key: string]: unknown };
167 constructor(options?: UniqueConstraintErrorOptions);
168}
169
170/**
171 * Thrown when a foreign key constraint is violated in the database

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…