I was looking for ability to handle exception from previous block and execute recovery routine before exiting, so there is no way to save info to session, afaik
Guess I need smth like this:
exec(s => {
Try {
exec(mayThrowExceptionAndFail)
} recoverWith {
case _: SomeException => Success(exec(recoverBlock))
}
s
})
But these exec-s will not be added to the chain, so this does not work.
Btw, does session hold status of previous block execution in internals (is it the way exitHereIfFailed implemented)?