Skip to content

Chapter 8. Error Sets

Programs fail for many reasons. A file may not exist. Memory allocation may fail. Input may be malformed. A network connection may close unexpectedly.

SectionTitle
1Error Sets
2Error Unions
3Returning Errors
4try
5catch
6defer and errdefer
7Designing Error Boundaries
8Exercises