Module io.ebean.api
Package io.ebean

Class DuplicateKeyException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.persistence.PersistenceException
io.ebean.DataIntegrityException
io.ebean.DuplicateKeyException
All Implemented Interfaces:
Serializable

public class DuplicateKeyException extends DataIntegrityException
Thrown when a duplicate is attempted on a unique constraint.
See Also:
  • Constructor Details

    • DuplicateKeyException

      public DuplicateKeyException(String message, Throwable cause)
      Create with a message and cause.