inline fun <T> Result<T>.onFailure( action: (exception: Throwable) -> Unit ): Result<T>
Performs the given action on encapsulated exception if this instance represents failure. Returns the original Result unchanged.
Result
© 2010–2019 JetBrains s.r.o.Licensed under the Apache License, Version 2.0. https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/on-failure.html