ZIO<R, E, A>.fail constructor

ZIO<R, E, A>.fail(
  1. E e
)

Create a ZIO that fails with e.

Implementation

factory ZIO.fail(E e) => ZIO.fromEither(Either.left(e));