Sign in Go Pro

Functional programming in Kotlin with Arrow

Error Handling - Option, Either, Try

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

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.
  • How Option<A> is a way to handle nullability errors in FP.
  • How 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 Either data 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.

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in Functional programming in Kotlin with Arrow