Class DuplicateKeyException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DuplicateKeyException
    extends KeyException
    Exception thrown if an action is not allowed due to a duplicate key error.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Object key
      Key which is not allowed due to a duplicate
      static java.lang.String MESSAGE  
    • Constructor Summary

      Constructors 
      Constructor Description
      DuplicateKeyException​(java.lang.Object key)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getKey()  
      • 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • key

        java.lang.Object key
        Key which is not allowed due to a duplicate
    • Constructor Detail

      • DuplicateKeyException

        public DuplicateKeyException​(java.lang.Object key)
    • Method Detail

      • getKey

        public java.lang.Object getKey()