AutoTweaker API
Toggle table of contents
0.1.0-alpha.35+c07218c5
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
AutoTweaker API
AutoTweaker API
/
io.github.autotweaker.api.base
/
CatchingResult
/
rethrowIf
rethrow
If
jvm
inline
fun
rethrowIf
(
test
:
(
Throwable
)
->
Boolean
)
:
CatchingResult
<
T
>
(
source
)
如果
test
,重新抛出异常
inline
fun
rethrowIf
(
test
:
(
Throwable
)
->
Boolean
,
on
:
(
Throwable
)
->
Unit
)
:
CatchingResult
<
T
>
(
source
)
如果
test
,执行
on
并重新抛出异常