ZIO<R, E, A>.die constructor
ZIO<R, E, A>.die (
- dynamic defect
Create a ZIO that fails with the given defect.
Implementation
factory ZIO.die(dynamic defect) =>
ZIO.fromExit(Either.left(Defect(defect, StackTrace.current)));