更新异常处理方式

This commit is contained in:
wangkang
2017-07-29 10:18:37 +08:00
parent 2658490d7e
commit ec02ab0ff8
@@ -71,8 +71,6 @@ public class ExceptionHandle extends ResponseEntityExceptionHandler {
} catch (IOException e) {
throw new SystemRuntimeException(e);
}
} else { //未知异常
localHttpStatus = HttpStatus.INTERNAL_SERVER_ERROR;
}
return super.handleExceptionInternal(ex, new RestResponse<>(status, errorResult), headers, localHttpStatus, request);
}