- Companion:
- object
- Source:
- STMLike.scala
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.
- Source:
- STMLike.scala
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.
- Source:
- STMLike.scala
Similar to attempt, but it only handles errors of type EE
.
Similar to attempt, but it only handles errors of type EE
.
- Source:
- STMLike.scala
Similar to attempt, but wraps the result in a EitherT for convenience.
Similar to attempt, but wraps the result in a EitherT for convenience.
- Source:
- STMLike.scala
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.
- Source:
- STMLike.scala
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.
- Source:
- STMLike.scala
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.
- Source:
- STMLike.scala
"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
.
- Source:
- STMLike.scala
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
- Source:
- STMLike.scala
Pair the result of function application with A
.
Pair the result of function application with A
.
- Source:
- STMLike.scala
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.
- Source:
- STMLike.scala
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.
- Source:
- STMLike.scala
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.
- Source:
- STMLike.scala
Try an alternative STM
action if this one retries.
Try an alternative STM
action if this one retries.
- Source:
- STMLike.scala
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.- Source:
- STMLike.scala
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.- Source:
- STMLike.scala
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.
- Source:
- STMLike.scala
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.
- Source:
- STMLike.scala
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.
- Source:
- STMLike.scala
Tuples the A
value in Txn[A]
with the supplied B
value, with the B
value on the right.
Tuples the A
value in Txn[A]
with the supplied B
value, with the B
value on the right.
- Source:
- STMLike.scala
Lifts natural subtyping covariance of covariant Functors.
Lifts natural subtyping covariance of covariant Functors.
- Source:
- STMLike.scala