add UnauthorizedException

This commit is contained in:
Shaun Chyxion 2017-07-09 21:11:36 +08:00
parent 13a69caa4c
commit c7c9ed1198

View File

@ -5,6 +5,7 @@ import java.util.HashMap;
import org.apache.shiro.ShiroException;
import org.apache.commons.lang3.tuple.Pair;
import org.springframework.core.annotation.Order;
import org.apache.shiro.authz.UnauthorizedException;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.shiro.authc.LockedAccountException;
import org.apache.shiro.authz.AuthorizationException;
@ -44,6 +45,8 @@ public class AuthExceptionResolver extends DefaultExceptionResolver {
pair(4014, "Expired Credentials"));
put(LockedAccountException.class,
pair(4015, "Locked Account"));
put(UnauthorizedException.class,
pair(4016, "Unauthorized"));
}
/**