add UnauthorizedException
This commit is contained in:
parent
13a69caa4c
commit
c7c9ed1198
@ -5,6 +5,7 @@ import java.util.HashMap;
|
|||||||
import org.apache.shiro.ShiroException;
|
import org.apache.shiro.ShiroException;
|
||||||
import org.apache.commons.lang3.tuple.Pair;
|
import org.apache.commons.lang3.tuple.Pair;
|
||||||
import org.springframework.core.annotation.Order;
|
import org.springframework.core.annotation.Order;
|
||||||
|
import org.apache.shiro.authz.UnauthorizedException;
|
||||||
import org.apache.commons.lang3.tuple.ImmutablePair;
|
import org.apache.commons.lang3.tuple.ImmutablePair;
|
||||||
import org.apache.shiro.authc.LockedAccountException;
|
import org.apache.shiro.authc.LockedAccountException;
|
||||||
import org.apache.shiro.authz.AuthorizationException;
|
import org.apache.shiro.authz.AuthorizationException;
|
||||||
@ -44,6 +45,8 @@ public class AuthExceptionResolver extends DefaultExceptionResolver {
|
|||||||
pair(4014, "Expired Credentials"));
|
pair(4014, "Expired Credentials"));
|
||||||
put(LockedAccountException.class,
|
put(LockedAccountException.class,
|
||||||
pair(4015, "Locked Account"));
|
pair(4015, "Locked Account"));
|
||||||
|
put(UnauthorizedException.class,
|
||||||
|
pair(4016, "Unauthorized"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user