Class DuplicateKeyException

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.lang.Throwable>

    public final class DuplicateKeyException
    extends PortableSQLException
    Indicates when a duplicate key exception is thrown from the database.
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.sql.SQLException

        getErrorCode, getNextException, getSQLState, iterator, setNextException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • DuplicateKeyException

        public DuplicateKeyException​(java.sql.SQLException nativeException)
      • DuplicateKeyException

        public DuplicateKeyException​(java.lang.String reason)
      • DuplicateKeyException

        public DuplicateKeyException()
      • DuplicateKeyException

        public DuplicateKeyException​(java.lang.String reason,
                                     java.lang.String state,
                                     int errCode)