Skip to content

Commit

Permalink
Merge pull request #117 from hocgin/develop
Browse files Browse the repository at this point in the history
[新增功能](develop): 用户配置
  • Loading branch information
hocgin authored Mar 1, 2023
2 parents b15cb00 + d7212a9 commit 01cd521
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public ExceptionResult<Void> handleServiceException(ServiceException e) {
}

@ExceptionHandler(Exception.class)
@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)
@ResponseStatus(value = HttpStatus.BAD_REQUEST)
public ExceptionResult<Void> handleException(Exception e) {
String message = StrUtil.emptyToDefault(e.getMessage(), "系统繁忙, 请稍后");
log.error("服务异常ID: [{}]", IdUtil.randomUUID(), e);
return ExceptionResult.fail(HttpStatus.INTERNAL_SERVER_ERROR.value(), message, e.getClass().getName());
return ExceptionResult.fail(HttpStatus.BAD_REQUEST.value(), message, e.getClass().getName());
}

@ExceptionHandler(HttpMessageNotReadableException.class)
Expand Down

0 comments on commit 01cd521

Please sign in to comment.