singularity

Chapter 9: Error Handling

Unrecoverable Errors with panic!

Recoverable Errors with Result

Matching on Different Errors

Propagating Errors

To panic! or Not to panic!

Examples, Prototype Code, and Tests

Cases in Which You Have More Information Than the Compiler

Guidelines for Error Handling

Creating Custom Types for Validation