Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Commit 4abc93c

Browse files
author
Chen Xiaowei
committed
1. update 10-1
1 parent 999e8a4 commit 4abc93c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/chapter10/chapter10-1-chinese.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ path canonical(const std::filesystem::path& p,
9595
std::error_code& ec );
9696
```
9797

98-
我们可以使用`try-catch`将系统函数进行包围,手动的对其抛出的异常进行处理。需要注意的的是,这里只会改变系统相关错误的动作,而无法对其他进行修改。带或不带`ec`参数,更加基于异常,例如当系统没有可分配内存时,还是会抛出`bad_alloc`异常。
98+
我们可以使用`try-catch`将系统函数进行包围,手动的对其抛出的异常进行处理。需要注意的是,这里只会改变系统相关错误的动作,而无法对其他进行修改。带或不带`ec`参数,更加基于异常,例如当系统没有可分配内存时,还是会抛出`bad_alloc`异常。

0 commit comments

Comments
 (0)