Skip to main content

Error Handling

The video for “Error Handling” is in the works!

Mux provides Result and Optional types for handling errors and missing values.

Result Types​

Result types represent either success (ok) or failure (err):

Try it yourself
Loading...

Optional Types​

Optional types represent a value that might not exist:

Try it yourself
Loading...

Combining with Pattern Matching​

Try it yourself
Loading...

Previous: Generics | Next: Interfaces