@ControllerAdvice public class ControllerExceptionHandler extends Object
| 构造器和说明 |
|---|
ControllerExceptionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
ResultMap |
handlerArgumentCheck(org.springframework.web.bind.MethodArgumentNotValidException ex) |
ResultMap |
handlerException(Exception e) |
ResultMap |
handlerMissingServletRequestParameterException(org.springframework.web.bind.MissingServletRequestParameterException e) |
ResultMap |
handlerRuntimeException(BackendRuntimeException e) |
@ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class) @ResponseBody public ResultMap handlerArgumentCheck(org.springframework.web.bind.MethodArgumentNotValidException ex)
@ExceptionHandler(value=BackendRuntimeException.class) @ResponseBody public ResultMap handlerRuntimeException(BackendRuntimeException e)
@ExceptionHandler(value=java.lang.Exception.class) @ResponseBody public ResultMap handlerException(Exception e)
@ExceptionHandler(value=org.springframework.web.bind.MissingServletRequestParameterException.class) @ResponseBody public ResultMap handlerMissingServletRequestParameterException(org.springframework.web.bind.MissingServletRequestParameterException e)
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.