CustomUserMessageAuthenticationException
CustomUserMessageAuthenticationException
class CustomUserMessageAuthenticationException extends AuthenticationException
An authentication exception where you can control the message shown to the user.
Be sure that the message passed to this exception is something that can be shown safely to your user. In other words, avoid catching other exceptions and passing their message directly to this class.
Methods
TokenInterface | getToken() Get the token. |