Skip to content

Part 5. Error Handling

Most programming languages need a way to handle failure.

SectionTitle
1Why Zig Has No Exceptions
2Error Sets
3Error Union Types
4try
5catch
6errdefer
7Propagating Errors
8Designing Error APIs
9Custom Error Types
10Panic and Crash Behavior