onFailure

Executes the given action if the result is a failure.

Return

The current EncodableResult instance.

Parameters

action

The action to be executed if the result is a failure.