Stage 2
11:00 11:25

Exception handling in Kotlin with Arrow

with Ramandeep Kaur

In day-to-day programming, it is fairly common to find ourselves writing functions that can fail. Most of the time we throw exceptions on our code and it gets tricky tracking exactly where an exception came from. Using the Kotlin Arrow library, we can easily communicate errors in the application and makes it far easier to manage errors within your domain.

Details

In day-to-day programming, it is fairly common to find ourselves writing functions that can fail. Most of the time we throw exceptions on our code and it gets tricky tracking exactly where an exception came from. Using the Kotlin Arrow library, we can easily communicate errors in the application and makes it far easier to manage errors within your domain.

Using code snippets, I am going to show how we can easily communicate the errors in the domain layer, without bombing the domain by throwing exceptions. Also, we’ll go over the different options we have for dealing with errors in Arrow.

Prerequisities

  • Basic Kotlin knowledge

BIO

Ramandeep is a software engineer working at Rabobank with over 8 years of experience in building scalable applications involving Java and now koltin. She is technology enthusiast and likes to takeup challenging work. She is also a avid animal lover!