0

在 Java 中,Android Studio 会为某些函数提供 Unhandled Exception 错误。例如,当我们编写将 String 转换为 Date 变量的代码时,它显示 Unhandled Exception:ParseException & 按 Alt+Insert 会自动添加 try catch 块 & 我们可以在 catch 块中编写异常条件的代码。但是在 Kotlin 中我没有看到这样的警告。在 Kotlin 中是否有其他处理异常的方法?

4

0 回答 0