Class DuplicateException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DuplicateException
    extends java.lang.Exception
    Notifies that the current operation failed because it would create an illegal duplication (of objects, of ids, etc...)
    Author:
    Fabrizio Giudici
    See Also:
    Serialized Form
    Status: stable API
    • Constructor Summary

      Constructors 
      Constructor Description
      DuplicateException()
      Creates a messageless exception.
      DuplicateException​(java.lang.String message)
      Creates an exception with a message.
    • Method Summary

      • 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
    • Constructor Detail

      • DuplicateException

        public DuplicateException()
        Creates a messageless exception.
      • DuplicateException

        public DuplicateException​(@Nonnull
                                  java.lang.String message)
        Creates an exception with a message.
        Parameters:
        message - the message