Cats Core · Part 11
Cats Core, Part 9: Ior, for Results That Arrive with Warnings
Either holds an error or a value. Ior can hold both, which is what an import needs when a contract is accepted but something about it deserves a warning.
Tag
Cats Core · Part 11
Either holds an error or a value. Ior can hold both, which is what an import needs when a contract is accepted but something about it deserves a warning.
Scala and the JVM · Part 20
A hand-written unapply turns a catch block into a policy: pass your own errors through, wrap recoverable JVM exceptions, and let fatal ones propagate. A runnable Scala 2.13 demo shows exactly when the matcher calls it.
Scala and the JVM · Part 16
I replace String failures with a sealed family of domain errors, keep Either composition unchanged, and choose human-readable messages only at the display boundary.
Scala and the JVM · Part 14
From Java-style exception handling to composable Scala results: capture a throwing conversion, understand map versus flatMap, write the same chain with for, and recover only from a specific failure.