@RestControllerAdvice public class BaseExceptionAdvice extends Object
| 构造器和说明 |
|---|
BaseExceptionAdvice() |
| 限定符和类型 | 方法和说明 |
|---|---|
BaseVO |
handleBaseException(BaseException e) |
BaseVO |
handleBaseRuntimeException(BaseRunTimeException e) |
static BaseVO |
handleCommonBaseException(long errorCode,
String defaultErrorMsg,
Object data,
Map<String,String> templateVars)
处理轻推通用异常
|
static BaseVO |
handleDefaultException()
返回 一个 默认 的 -1 异常
|
BaseVO |
handleException(Exception e) |
BaseVO |
handleIllegalRequestException(Exception e) |
@ExceptionHandler(value=im.qingtui.qbee.open.platfrom.base.common.exception.BaseException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public BaseVO handleBaseException(BaseException e)
@ExceptionHandler(value=im.qingtui.qbee.open.platfrom.base.common.exception.BaseRunTimeException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public BaseVO handleBaseRuntimeException(BaseRunTimeException e)
@ExceptionHandler(value=java.lang.Exception.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public BaseVO handleException(Exception e)
@ExceptionHandler(value=im.qingtui.qbee.open.platfrom.base.common.exception.IllegalRequestException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public BaseVO handleIllegalRequestException(Exception e)
public static BaseVO handleDefaultException()
Copyright © 2021. All rights reserved.