getOrThrow
runCatching
run
예:
fun foo() = runCatching { doSomething() }.getOrThrow()
빠른 수정을 적용한 후:
fun foo() = run { doSomething() }