|
|
@ -85,7 +85,7 @@ public class GlobalExceptionHandler {
|
|
|
|
public R<Void> handleServiceException(ServiceException e, HttpServletRequest request) {
|
|
|
|
public R<Void> handleServiceException(ServiceException e, HttpServletRequest request) {
|
|
|
|
log.error(e.getMessage(), e);
|
|
|
|
log.error(e.getMessage(), e);
|
|
|
|
Integer code = e.getCode();
|
|
|
|
Integer code = e.getCode();
|
|
|
|
return ObjectUtil.isNotNull(code) ? R.fail(code.intValue(), e.getMessage()) : R.fail(e.getMessage());
|
|
|
|
return ObjectUtil.isNotNull(code) ? R.fail(code, e.getMessage()) : R.fail(e.getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|