first commit
This commit is contained in:
@ -43,7 +43,7 @@ public class ExceptionAdvice {
|
||||
@ExceptionHandler(ServiceException.class)
|
||||
@ResponseBody
|
||||
public AjaxResult handlerServiceException(ServiceException e) {
|
||||
return AjaxResult.error(e.getMessage());
|
||||
return Objects.isNull(e.getErrorCode()) ? AjaxResult.error(e.getMessage()) : AjaxResult.error(e.getErrorCode(), e.getMessage());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user