# 错误处理

| 食谱                                                            | 箱子                                | 类别                                            |
| --------------------------------------------------------------- | ----------------------------------- | ----------------------------------------------- |
| [main 的 正确处理错误][ex-error-chain-simple-error-handling]    | [![error-chain-badge]][error-chain] | [![cat-rust-patterns-badge]][cat-rust-patterns] |
| [避免在错误转换期间，丢弃错误][ex-error-chain-avoid-discarding] | [![error-chain-badge]][error-chain] | [![cat-rust-patterns-badge]][cat-rust-patterns] |
| [获取错误复杂场景的回溯][ex-error-chain-backtrace]              | [![error-chain-badge]][error-chain] | [![cat-rust-patterns-badge]][cat-rust-patterns] |

[ex-error-chain-simple-error-handling]: errors/handle.zh.html#handle-errors-correctly-in-main
[ex-error-chain-avoid-discarding]: errors/handle.zh.html#avoid-discarding-errors-during-error-conversions
[ex-error-chain-backtrace]: errors/handle.zh.html#obtain-backtrace-of-complex-error-scenarios

{{#include links.zh.md}}
