Class ServerAuthenticationException

All Implemented Interfaces:
Serializable

public final class ServerAuthenticationException extends LoginException
An exception indicating that a login has failed due to an authentication error, invalid username or password.

A login failure with a cause presents the message of its cause, as read, see getMessage(). A cause providing its message in the language of the reader thereby provides a client with a message in its own language, not that of the server.

See Also:
  • Constructor Details

    • ServerAuthenticationException

      public ServerAuthenticationException(String message)
      Parameters:
      message - the exception message
    • ServerAuthenticationException

      public ServerAuthenticationException(Throwable cause)
      Instantiates a new ServerAuthenticationException, presenting the message of its cause. Note that the cause travels to the client, along with its own causes, if any.
      Parameters:
      cause - the cause of the authentication failure
  • Method Details

    • getMessage

      public @Nullable String getMessage()
      Overrides:
      getMessage in class Throwable
      Returns:
      the message of the cause, if there is one and it has a message, otherwise the message of this exception