Used to recognize an error that has happened for a database constraint that is not explicitly handled.
Used to recognize an error that has happened because of missing permissions.
Used to recognize that a PL/pgSQL Error was raised.
Used to recognize an error that has happened because of a foreign key violation.
Used to recognize an error that has happened because of a custom constraint that checks if string value is one of the allowed values.
Used to recognize an error that has happened because of a custom constraint that checks if string is a valid Base64 encoded value.
Used to recognize an error that has happened because of a custom constraint that checks if string value is null or empty.
Used to recognize an error that has happened because of a custom constraint that checks if string is a valid Identifier key value (contains only letters, numbers, underscores, and dashes).
Used to recognize an error that has happened because of a custom constraint that checks if string starts or ends with a whitespace character.
Used to recognize an error that has happened because of a custom constraint that checks if string value is a valid URL.
Used to recognize an error that has happened because a database query tried to access the locked row and failed due to timeout because the lock was not released in time.
Used to recognize an error that has happened because of a custom constraint that checks if string matches a regex patten.
Used to recognize an error that has happened because of a custom constraint that checks if number is too big.
Used to recognize an error that has happened because of a custom constraint that checks if string is too long.
Used to recognize an error that has happened because of a custom constraint that checks if number is too small.
Used to recognize an error that has happened because of a custom constraint that checks if string is too short.
Used to recognize an error that has happened because of a not-null constraint violation.
Used to recognize an error that has happened because of a default constraint that checks if numeric value out of range.
Used to recognize an error that has happened because of a custom constraint that checks if string starts with specific characters.
Used to recognize an error that has happened because of a unique constraint violation.
Generated using TypeDoc
An enum containing default and custom PostgreSQL constraint error codes that are currently being handled by default errors handler mapper to produce more user-friendly messages. This resource can be used to check default error codes: https://www.postgresql.org/docs/current/errcodes-appendix.html