UniqueConstraintException

most-data/types~ UniqueConstraintException

Extends Error object for throwing unique constraint exceptions.

Constructor

new UniqueConstraintException(messageopt, innerMessageopt)

Parameters:
Name Type Attributes Description
message string <optional>
The error message
innerMessage string <optional>
The error inner message
Properties:
Name Type Description
code string A string that represents an error code. The default error code is ENULL.
message string The error message.
innerMessage string The error inner message.
status number A number that represents an error status. This error status may be used for throwing the approriate HTTP error. The default status is 409 (Conflict)
model string The target model name
constraint string The target constraint name
Source:

Extends

  • Error