Searching online for the answer gives two prominent posts ( Codacy's and Daniel Westheide's ), and both give the same answer as Scala's official documentation for Try : An important property of Try shown in the above example is its ability to pipeline, or chain, operations, catching exceptions along the way. The example referenced above is: import scala.io.StdIn import scala.util.{Try, Success, Failure} def divide: Try[Int] = { val dividend = Try(StdIn.readLine("Enter an Int that you'd like to divide:\n").toInt) val divisor = Try(StdIn.readLine("Enter an Int that you'd like to divide by:\n")