onValue

Execute an action if this expected is an error.

Return

this expected, unchanged

Parameters

action

Function handling the case when value is present.

open fun onValue(action: Expected.Action<V>): Expected<E, V>