onFailure

Executes an action if the result is Failure, without modifying the original error.

Return

The same DataResult for chaining.

Parameters

action

Action to execute on the Failure error.