在自定义realm抛出自定义异常时,会被Authenticationexception打包,
出现这样的异常
Authentication failed for token submission [xx.xx.xx.xx - xxx, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
其实打开Authenticationexception,就会发现如下
/**
* General exception thrown due to an error during the Authentication process.
*
* @since 0.1
*/
public class AuthenticationException extends ShiroException
{
/**
* Creates a new AuthenticationException.
*/
public AuthenticationException() {
super();
}
/**
* Constructs a new AuthenticationException.
*
* @param message the reason for the exception
*/
public AuthenticationException(String message) {
super(message);
}
/**
* Constructs a new AuthenticationException.
*
* @par