@RestControllerAdvice public class GlobalExceptionHandler extends Object
| 构造器和说明 |
|---|
GlobalExceptionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
handler(org.springframework.security.access.AccessDeniedException e) |
Result |
handler(IllegalArgumentException e) |
Result |
handler(io.jsonwebtoken.JwtException e) |
Result |
handler(org.springframework.web.bind.MethodArgumentNotValidException e) |
Result |
handler(RuntimeException e) |
Result |
handler(ServiceException e) |
@ExceptionHandler(value=org.springframework.security.access.AccessDeniedException.class) public Result handler(org.springframework.security.access.AccessDeniedException e)
@ExceptionHandler(value=io.jsonwebtoken.JwtException.class) public Result handler(io.jsonwebtoken.JwtException e)
@ResponseStatus(value=OK) @ExceptionHandler(value=ServiceException.class) public Result handler(ServiceException e)
@ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class) public Result handler(org.springframework.web.bind.MethodArgumentNotValidException e)
@ExceptionHandler(value=java.lang.IllegalArgumentException.class) public Result handler(IllegalArgumentException e)
@ExceptionHandler(value=java.lang.RuntimeException.class) public Result handler(RuntimeException e)
Copyright © 2023. All rights reserved.