ZIO<R, E, A>.failCause constructor
ZIO<R, E, A>.failCause (
- Cause<
E> cause
Create a ZIO that fails with the given cause
.
Implementation
factory ZIO.failCause(Cause<E> cause) => ZIO.fromExit(Either.left(cause));