Class DuplicateKeyException

    • Constructor Detail

      • DuplicateKeyException

        protected DuplicateKeyException​(String newErrorCode,
                                        String messageFormat,
                                        Throwable cause,
                                        Object[] exceptionDataEN,
                                        Object[] exceptionData)
      • DuplicateKeyException

        public DuplicateKeyException​(Throwable cause,
                                     String objectName,
                                     long keyValue)
        The database is in an inconsistent state, found a duplicate primary key.
        Parameters:
        cause - The originating exception, null if this is the originating exception
        objectName - The name of the object
        keyValue - The value of the key for which multiple objects were found