Package: effect
Module: Cause
Retrieves the first Fail error in a Cause, if present.
Details
This function returns an Option containing the first recoverable error
(E) from the cause. It’s often used to quickly check if there’s a primary
error to handle or display.
Signature
declare const failureOption: <E>(self: Cause<E>) => Option.Option<E>
Since v2.0.0