Module is.codion.common.rmi
Class ServerAuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
is.codion.common.rmi.server.exception.ServerException
is.codion.common.rmi.server.exception.LoginException
is.codion.common.rmi.server.exception.ServerAuthenticationException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionServerAuthenticationException(String message) Instantiates a newServerAuthenticationExceptionInstantiates a newServerAuthenticationException, presenting the message of its cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServerAuthenticationException
Instantiates a newServerAuthenticationException- Parameters:
message- the exception message
-
ServerAuthenticationException
Instantiates a newServerAuthenticationException, 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
- Overrides:
getMessagein classThrowable- Returns:
- the message of the cause, if there is one and it has a message, otherwise the message of this exception
-