flattenNestedFailure

Flattens a nested Outcome from inside the Failure state into a single Outcome.

The returned value type is the nearest common AncestorOk of EmbeddedOk and OuterOk.

Parameters

Error

The Failure error type.

OuterOk

The Success value type of the outer Outcome.

EmbeddedOk

The Success value type nested inside the Failure state.

AncestorOk

The nearest common ancestor of EmbeddedOk and OuterOk.

See also