IOError
case Generic(String)
Definitions
def tryCatch(f: Unit -> a \ ef): Result[IOError, a] \ ef
SourceA 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.