Package: effect
Module: Cause
Returns true if the cause contains at least one Die reason.
When to use
Use to check whether a cause includes defects before extracting or rendering them.
Example (Checking for defects)
import { Cause } from "effect"
console.log(Cause.hasDies(Cause.die("defect"))) // true
console.log(Cause.hasDies(Cause.fail("error"))) // false
See
hasFails — check for typed errorshasInterrupts — check for interruptionsSignature
declare const hasDies: <E>(self: Cause<E>) => boolean
Since v4.0.0