Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.misc/TealiumResult/onFailure

onFailure

inline fun onFailure(block: (ex: Throwable) -> Unit): TealiumResult<T>

Executes the given block when the TealiumResult was a failure.

Return

this TealiumResult

Parameters

block

The block to execute when the result was a failure


fun onFailure(action: Callback<Throwable>): TealiumResult<T>

Executes the given action when the TealiumResult was a failure.

Return

this TealiumResult

Parameters

action

The callback to execute when the result was a failure

Generated by Dokka
(c) Tealium 2026