Experimental

class Object
trait Matchable
class Any

Extensions

Extensions

extension (zio: ZIO.type)
def fromThrows[E <: Exception, A](a: => A ?=> E): IO[E, A]

Converts a value whose computation may throw exceptions into a ZIO value.

Converts a value whose computation may throw exceptions into a ZIO value.