octavius-postgresql
Toggle table of contents
2.8.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
octavius-postgresql
client
/
io.github.octaviusframework.client
/
onFailure
on
Failure
inline
fun
<
T
>
DataResult
<
T
>
.
onFailure
(
action
:
(
OctaviusException
)
->
Unit
)
:
DataResult
<
T
>
Runs
action
on the failure if this is a
DataResult.Failure
, and returns this result either way.