Skip to content

Commit a3b3210

Browse files
committed
Update ErrorHandling.md
1 parent 7425f99 commit a3b3210

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift-6-beta.docc/LanguageGuide/ErrorHandling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
以从磁盘文件读取和处理数据为例。该任务失败的原因有很多,包括指定路径下的文件不存在、文件没有读取权限或文件编码格式不兼容。通过区分这些不同的失败情况来让程序处理和解决一些错误,并将无法解决的错误告知用户。
1010

1111
> 注意:
12-
> Swift 中的错误处理与 Cocoa 和 Objective-C 中使用 NSError 类的错误处理模式互操作。
12+
> Swift 中的错误处理与 Cocoa 和 Objective-C 中使用 `NSError` 类的错误处理模式互操作。
1313
> 有关该类的更多信息,请参阅 [在 Swift 中处理 Cocoa 错误](https://developer.apple.com/documentation/swift/cocoa_design_patterns/handling_cocoa_errors_in_swift).
1414
1515
## 表示与抛出错误

0 commit comments

Comments
 (0)