@RestControllerAdvice public class DefaultGlobalExceptionHandler extends Object
| 构造器和说明 |
|---|
DefaultGlobalExceptionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
Result |
bindExceptionHandler(org.springframework.validation.BindException exception) |
Result |
bodyValidExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException exception) |
Result |
exceptionHandler(Exception exception) |
Result |
exceptionHandler(com.fasterxml.jackson.databind.JsonMappingException exception) |
Result |
exceptionHandler(com.fasterxml.jackson.core.JsonParseException exception) |
Result |
exceptionHandler(ServiceException ex) |
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=java.lang.Exception.class) public Result exceptionHandler(Exception exception)
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=cn.fxbin.bubble.fireworks.core.exception.ServiceException.class) public Result exceptionHandler(ServiceException ex)
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class) public Result bodyValidExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException exception)
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=org.springframework.validation.BindException.class) public Result bindExceptionHandler(org.springframework.validation.BindException exception)
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=com.fasterxml.jackson.core.JsonParseException.class) public Result exceptionHandler(com.fasterxml.jackson.core.JsonParseException exception)
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=com.fasterxml.jackson.databind.JsonMappingException.class) public Result exceptionHandler(com.fasterxml.jackson.databind.JsonMappingException exception)
Copyright © 2020. All rights reserved.