Class DuplicateNameException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DuplicateNameException
    extends UsrException
    Exception thrown whenever a method tries give something a name and that name is already used.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DuplicateNameException()
      constructs a new DuplicatenameException with a default message.
      DuplicateNameException​(java.lang.String usrMessage)
      construct a new DuplicateNameException with a given 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

      • DuplicateNameException

        public DuplicateNameException()
        constructs a new DuplicatenameException with a default message.
      • DuplicateNameException

        public DuplicateNameException​(java.lang.String usrMessage)
        construct a new DuplicateNameException with a given message.
        Parameters:
        usrMessage - overides the default message.