ZIO<R, E, A>.die constructor

ZIO<R, E, A>.die(
  1. 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)));