enum IOError with Eq, Order, ToString, Hash, SendableSource
case Generic(String)


instance Eq[IOError]Source
instance Hash[IOError]Source
instance Order[IOError]Source
instance Sendable[IOError]Source
instance ToString[IOError]Source


def tryCatch(f: Unit -> a \ ef): Result[IOError, a] \ ef Source

A version of Result.tryCatch that runs an IO based operation and returns an IOError on failure.

Returns Ok(x) if f was invoked without throwing an exception.

If f throws a Java Exception, Err(e) is returned where e is the error message.