Class DuplicateUserAccountException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DuplicateUserAccountException
    extends java.lang.RuntimeException
    Thrown on attempt to create a user with a username which already exists in the database.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAccount()
      Returns username
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, 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

      • DuplicateUserAccountException

        public DuplicateUserAccountException​(java.lang.String account)
      • DuplicateUserAccountException

        public DuplicateUserAccountException​(java.lang.String account,
                                             java.lang.String message)
        Constructor
        Parameters:
        account - username
        message - message
    • Method Detail

      • getAccount

        public java.lang.String getAccount()
        Returns username
        Returns:
        username
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable