onException

inline fun <E : Throwable> onException(action: (E) -> Unit): CatchingResult<T>(source)

如果异常为 E,执行 action