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


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