Any app out there needs to find a way to model and handle errors. Learn different approaches usually handy for many usual cases on Android apps.
- How exceptions break referential transparency.
Option<A>is a way to handle nullability errors in FP.
Try<A>allows error handling for cases where you can afford using exceptions for modeling your errors, or to wrap potentially throwing computations for automatic error catching.
- How to model disjunction / duality with the
Eitherdata type to represent the duality between errors or successful data. This becomes really handy when you need control over your error types and you want to map them to a sealed hierarchy of domain errors.
Something went wrong
Lesson added to playlist
Create new playlist
Name can't be empty