@RestControllerAdvice public class CustomException extends Object
| Constructor and Description |
|---|
CustomException() |
| Modifier and Type | Method and Description |
|---|---|
JsonUtil |
getAuthenticationException(org.apache.shiro.authc.AuthenticationException e) |
JsonUtil |
getUnauthorizedException(UnauthorizedException e) |
JsonUtil |
getUnknownAccountException(org.apache.shiro.authc.UnknownAccountException e) |
@ResponseStatus(value=UNAUTHORIZED) @ExceptionHandler(value=org.apache.shiro.authc.AuthenticationException.class) public JsonUtil getAuthenticationException(org.apache.shiro.authc.AuthenticationException e)
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=org.apache.shiro.authc.UnknownAccountException.class) public JsonUtil getUnknownAccountException(org.apache.shiro.authc.UnknownAccountException e)
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=UnauthorizedException.class) public JsonUtil getUnauthorizedException(UnauthorizedException e)
Copyright © 2019. All rights reserved.