mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-14 03:03:07 +08:00
fix(file/excel): 修复导出时无法正确捕捉异常的问题
This commit is contained in:
@@ -89,6 +89,7 @@ public class ExcelUtils {
|
|||||||
.doWrite(list);
|
.doWrite(list);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("Export excel occurred an error: {}. fileName: {}.", e.getMessage(), fileName, e);
|
log.error("Export excel occurred an error: {}. fileName: {}.", e.getMessage(), fileName, e);
|
||||||
|
response.reset();
|
||||||
throw new BaseException("导出 Excel 出现错误");
|
throw new BaseException("导出 Excel 出现错误");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user