Core concept
import scala.util.Try
val result = Try("42".toInt) // Success(42)Advertisement
How it works
Only catches non-fatal. Won't hide OutOfMemory etc.
Advertisement
Trade-offs + gotchas
Bridging Java APIs that throw. FP composition of exception-throwing code.