Converts a Try to an Or, with
Success becoming Good and
Failure becoming Bad.
Converts a Try to an Or, with
Success becoming Good and
Failure becoming Bad.
Validates a Try using the passed validation functions.
Validates a Try using the passed validation functions.
See the main documentation for trait TrySugar for more detail and examples.
a "validated" Try, either a Try with the same value, or
if validation failed, a failed Try containing a ValidationFailedException.
Implicit class that adds a
toOrmethod toTry, which convertsSuccesstoGood, andFailuretoBad, as well as avalidationmethod, which takes one or more functions that validate theFuture's value.See the main documentation for trait
TrySugarfor more detail and examples.