Package: effect
Module: Cause
Retrieves the first Die defect in a Cause, if present.
Details
This function returns an Option containing the first unexpected failure
(Die) discovered. It’s helpful for diagnosing the primary defect in a chain
of errors.
Signature
declare const dieOption: <E>(self: Cause<E>) => Option.Option<unknown>
Since v2.0.0