@RestControllerAdvice(annotations=FsfControllerAdvice.class) public class ControllerExceptionHandler extends Object
| 构造器和说明 |
|---|
ControllerExceptionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
BaseVo<?> |
handleBusinessException(BusinessException e) |
BaseVo<?> |
handleBusinessException(FlyingSpurBaseException e) |
BaseVo<?> |
handleSystemException(SystemException e) |
@ExceptionHandler(value=BusinessException.class) @ResponseStatus(value=OK) public BaseVo<?> handleBusinessException(BusinessException e)
@ExceptionHandler(value=SystemException.class) @ResponseStatus(value=OK) public BaseVo<?> handleSystemException(SystemException e)
@ExceptionHandler(value=cn.crazywalker.fsf.common.exception.FlyingSpurBaseException.class) @ResponseStatus(value=OK) public BaseVo<?> handleBusinessException(FlyingSpurBaseException e)
Copyright © 2023. All rights reserved.