@RestControllerAdvice public class ServiceExceptionHandler extends Object
| 构造器和说明 |
|---|
ServiceExceptionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
R<Object> |
constraintViolationException(javax.validation.ConstraintViolationException e) |
R<Object> |
handleBindException(org.springframework.validation.BindException ex) |
R<Object> |
handleException(Exception e) |
R<Object> |
handleException(ServiceException e) |
R<Object> |
methodArgumentNotValidException(org.springframework.web.bind.MethodArgumentNotValidException e) |
R<Object> |
missingServletRequestParameterException(org.springframework.web.bind.MissingServletRequestParameterException e) |
@ExceptionHandler(value=java.lang.Exception.class) public R<Object> handleException(Exception e)
@ExceptionHandler(value=ServiceException.class) public R<Object> handleException(ServiceException e)
@ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class) public R<Object> methodArgumentNotValidException(org.springframework.web.bind.MethodArgumentNotValidException e)
@ExceptionHandler(value=org.springframework.validation.BindException.class) public R<Object> handleBindException(org.springframework.validation.BindException ex)
@ExceptionHandler(value=org.springframework.web.bind.MissingServletRequestParameterException.class) public R<Object> missingServletRequestParameterException(org.springframework.web.bind.MissingServletRequestParameterException e)
Copyright © 2025 Pivotal Software, Inc.. All rights reserved.