示例工程 13-error-handling
13-error-handling/Diagnostics/README.md
# Diagnostics
三个文件**故意编译失败**,用来复现第 13 章「报错现场」的真实诊断。
```bash
swiftc Diagnostics/MissingTry.swift # error: call can throw but is not marked with 'try'
swiftc Diagnostics/ThrowNonError.swift # error: thrown expression type 'String' does not conform to 'Error'
swiftc Diagnostics/ClosureNotThrowing.swift # error: invalid conversion from throwing function
```