Class InvalidUsernameException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidUsernameException
    extends java.lang.Exception
    Thrown if username is invalid by any reason
    Since:
    8.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidUsernameException​(java.lang.String userMessage)
      Deprecated.
      Use constructor with separate admin and user messages
      InvalidUsernameException​(java.lang.String userMessage, java.lang.String adminMessage)  
    • Method Summary

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

      • InvalidUsernameException

        public InvalidUsernameException​(@NotNull
                                        java.lang.String userMessage)
        Deprecated.
        Use constructor with separate admin and user messages
      • InvalidUsernameException

        public InvalidUsernameException​(@NotNull
                                        java.lang.String userMessage,
                                        @NotNull
                                        java.lang.String adminMessage)
    • Method Detail

      • getAdminMessage

        @NotNull
        public java.lang.String getAdminMessage()