Scala Standard Library 2.13.6 - scala.util.Try
www.scala-lang.org › api › 2scala.concurrent - Primitives for concurrent programming such as Futures and Promises; scala.io - Input and output operations; scala.math - Basic math functions and additional numeric types like BigInt and BigDecimal; scala.sys - Interaction with other processes and the operating system; scala.util.matching - Regular expressions; Other packages exist.
try/catch/finally Expressions - Scala Documentation
docs.scala-lang.org › overviews › scala-bookWe’ll cover more details about Scala’s try/catch/finally syntax in later lessons, such as in the “Functional Error Handling” lessons, but these examples demonstrate how the syntax works. A great thing about the syntax is that it’s consistent with the match expression syntax. This makes your code consistent and easier to read, and you don’t have to remember a special/different syntax.