Like Result.onFailure, but rethrows exceptions of type E and invokes action for all others.
Extension function on Result.
this Result
the action to invoke on non-E failures
the exception type to rethrow
the result type
if the failure is an instance of E