rethrowIf

inline fun rethrowIf(test: (Throwable) -> Boolean): CatchingResult<T>(source)

如果 test,重新抛出异常


inline fun rethrowIf(test: (Throwable) -> Boolean, on: (Throwable) -> Unit): CatchingResult<T>(source)

如果 test,执行 on 并重新抛出异常