Framework
UniqueConstraintError
Class: UniqueConstraintError
Thrown when a unique constraint is violated.
Extends
Constructors
new UniqueConstraintError()
new UniqueConstraintError(message, options?): UniqueConstraintErrorParameters
| Parameter | Type |
|---|---|
message | string |
options? | { cause: Error; field: string; model: string; value: unknown; } |
options.cause? | Error |
options.field? | string |
options.model? | string |
options.value? | unknown |
Returns
Overrides
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
code | readonly | string | FlashcoreError.code |
field? | readonly | string | - |
model? | readonly | string | - |
value? | readonly | unknown | - |
