optimize(ebom): 优化错误提示
This commit is contained in:
parent
ea95483620
commit
7dec2c1198
|
|
@ -124,9 +124,12 @@ public class BaseGlobalExceptionHandle {
|
|||
@ResponseBody
|
||||
public ResultVO<String> handleRuntimeExceptionException(RuntimeException e) {
|
||||
log.error(e.getMessage(),e);
|
||||
//throw new NflgBusinessException(STATE.Error, "系统错误,请联系管理员");
|
||||
if (StrUtil.isNotBlank(e.getMessage()) && e.getMessage().contains("Deadlock")) {
|
||||
return ResultVO.error("操作失败,请重试");
|
||||
} else {
|
||||
return ResultVO.error("系统错误,请联系管理员");
|
||||
}
|
||||
}
|
||||
|
||||
@ExceptionHandler(value = BadSqlGrammarException.class)
|
||||
@ResponseBody
|
||||
|
|
|
|||
Loading…
Reference in New Issue