MCPcopy Create free account
hub / github.com/codemix/graph / constructor

Method constructor

packages/graph/src/Exceptions.ts:158–172  ·  view source on GitHub ↗
(
    label: string,
    property: string,
    value: unknown,
    existingElementId: ElementId,
  )

Source from the content-addressed store, hash-verified

156 public readonly existingElementId: ElementId;
157
158 public constructor(
159 label: string,
160 property: string,
161 value: unknown,
162 existingElementId: ElementId,
163 ) {
164 super(
165 `Unique constraint violation: property '${property}' on label '${label}' already has value ${JSON.stringify(value)} (existing element: ${existingElementId})`,
166 );
167 this.name = "UniqueConstraintViolationError";
168 this.label = label;
169 this.property = property;
170 this.value = value;
171 this.existingElementId = existingElementId;
172 }
173}
174
175/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected