Wrapper class that adds success
and failure
methods to scala.util.Try
, allowing
you to make statements like:
Wrapper class that adds success
and failure
methods to scala.util.Try
, allowing
you to make statements like:
try1.success.value should be > 9 try2.failure.exception should have message "/ by zero"
Implicit conversion that adds success
and failure
methods to Try
.
Implicit conversion that adds success
and failure
methods to Try
.
the Try
to which to add the success
and failure
methods
Companion object that facilitates the importing of
TryValues
members as an alternative to mixing it in. One use case is to importTryValues
's members so you can usesuccess
andfailure
onTry
in the Scala interpreter.