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.
Executes the given action if the result is a failure.
The current EncodableResult instance.
The action to be executed if the result is a failure.