(
label: string,
property: string,
value: unknown,
existingElementId: ElementId,
)
| 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 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected