[Scala] 6장 - 에러 처리
📙 1. 기본 try / catch / finallyScala에서는 try문도 표현식(Expression)이며 try를 사용해 값을 반환할 수 있습니다. import java.nio.file.{Files, Paths}import java.nio.charset.StandardCharsetsobject TryCatchFinallyExample { def main(args: Array[String]): Unit = { val outputPath = Paths.get("output.txt"); // 한글 출력 파일 val sb = new StringBuilder() try { val num = "123a".toInt // NumberFormatExcep..