Skip to content
0:00 / 0:00

#scala#cats#errorhandling

Idiomatic Error Handling in Scala | Rock the JVM

Rock the JVM

27K subscribers • 59 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.

Intermediate. Assumes working knowledge.

10K views5 years ago1 recommendation

Programming languagesSoftware designFunctional programmingDesign patterns

A comparison of error handling strategies in Scala, covering Try, Either, and Validated from the Cats library.

Written version: blog.rockthejvm.com/idiomatic-error-handling-in-scala/ Scala & Cats course: rockthejvm.com/p/cats YouTube videos on topics related to Cats: Functors: youtube.com/watch?v=aSnY2JBzjUw Type classes: youtube.com/watch?v=bupBZKJT0EA Scala 3 Given/Using: youtube.com/watch?v=vpL-JPHt9qw Monads intro: youtube.com/watch?v=d-dy1x33moA This is a video primarily for Scala folks, but it transfers to other languages e.g. Java, TypeScript, C++ or other typed languages. In this video we'll explore various ways of handling errors in Scala, from the simplest and most straightforward, to the more complex and more powerful. We'll look at the try/catch structure that we can also find in Java, then we'll distance ourselves with Try, Either, and finally Validated from the Scala Cats library, discussing the pros and cons for each. Follow Rock the JVM on: LinkedIn: linkedin.com/company/rockthejvm Twitter: twitter.com/rockthejvm Blog: rockthejvm.com/blog ------------------------------------------------------------------------- Home: rockthejvm.com -------------------------------------------------------------------------

Why it's here

1 person recommends this

What people say. Recommended as a comprehensive guide to functional error handling in Scala.

u/danielciocirlanin r/scala • Recommends

Idiomatic Error Handling in Scala