PaperCall is shutting down on August 31, 2026. Existing events and submissions will remain available until then. New events can no longer be created.

Functional Error Handling with Cats

By Mark Canlas

Elevator Pitch

Sometimes we want to keep or collect errors for later examination. We’ll use Cats to help us pick the story we want to tell when handling errors; accumulated errors or first error wins. Monads will be included!

Description

Learn about the ApplictiveError[_], MonadError[_], Validated[_, _], and Chain[_] type classes. And how to use them for handling errors in a functional way, via accumulation or monadically.

Notes

Assumes prior knowledge of Cats, common type classes, and common ADTs.

Presented as a slide show.