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
toOr
method toTry
, which convertsSuccess
toGood
, andFailure
toBad
, as well as avalidation
method, which takes one or more functions that validate theFuture
's value.See the main documentation for trait
TrySugar
for more detail and examples.