- Companion
- object
Value members
Concrete methods
Transform certain errors using pf
and rethrow them.
Non matching errors and successful values are not affected by this function.
Transform certain errors using pf
and rethrow them.
Non matching errors and successful values are not affected by this function.
Handle errors by turning them into Either values.
Handle errors by turning them into Either values.
If there is no error, then an scala.util.Right
value will be returned instead.
Reifies the value or error of the source and performs an effect on the result,
then recovers the original value or error back into F
.
Reifies the value or error of the source and performs an effect on the result,
then recovers the original value or error back into F
.
Note that if the effect returned by f
fails, the resulting effect will fail too.
Turns a successful value into an error if it does not satisfy a given predicate.
Turns a successful value into an error if it does not satisfy a given predicate.
Turns a successful value into an error specified by the error
function if it does not satisfy a given predicate.
Turns a successful value into an error specified by the error
function if it does not satisfy a given predicate.
"flatten" a nested F
of F
structure into a single-layer F
structure.
"flatten" a nested F
of F
structure into a single-layer F
structure.
This is also commonly called join
.
Tuple the values in fa with the result of applying a function with the value
Tuple the values in fa with the result of applying a function with the value
Handle any error, by mapping it to an A
value.
Handle any error, by mapping it to an A
value.
- See also
handleErrorWith to map to an
F[A]
value instead of simply anA
value.recover to only recover from certain errors.
Handle any error, potentially recovering from it, by mapping it to an
F[A]
value.
Handle any error, potentially recovering from it, by mapping it to an
F[A]
value.
- See also
handleError to handle any error by simply mapping it to an
A
value instead of anF[A]
.recoverWith to recover from only certain errors.
Execute a callback on certain errors, then rethrow them. Any non matching error is rethrown as well.
Execute a callback on certain errors, then rethrow them. Any non matching error is rethrown as well.
Try an alternative STM
action if this one retries.
Try an alternative STM
action if this one retries.
Recover from certain errors by mapping them to an A
value.
Recover from certain errors by mapping them to an A
value.
- See also
handleError to handle any/all errors.
recoverWith to recover from certain errors by mapping them to
F[A]
values.
Recover from certain errors by mapping them to an F[A]
value.
Recover from certain errors by mapping them to an F[A]
value.
- See also
handleErrorWith to handle any/all errors.
recover to recover from certain errors by mapping them to
A
values.
Returns a new value that transforms the result of the source,
given the recover
or map
functions, which get executed depending
on whether the result is successful or if it ends in error.
Returns a new value that transforms the result of the source,
given the recover
or map
functions, which get executed depending
on whether the result is successful or if it ends in error.
Returns a new value that transforms the result of the source,
given the recover
or bind
functions, which get executed depending
on whether the result is successful or if it ends in error.
Returns a new value that transforms the result of the source,
given the recover
or bind
functions, which get executed depending
on whether the result is successful or if it ends in error.
Tuples the A
value in Txn[A]
with the supplied B
value, with the B
value on the left.
Tuples the A
value in Txn[A]
with the supplied B
value, with the B
value on the left.