micah
10/07/2025, 3:30 PMResult types instead of throwing. But merging the result type back together makes things a bit messy.
I'm wondering whether any has developed opinions/thoughts on how error handling works inside of strategy/subgraphs, what experiences have been, etc.Antonii Belyshev
10/07/2025, 6:14 PMResult outputs could be managed using conditions and transformations on the edges, e.g.:
edge(nodeWithError forwardTo nextNode onCondition { it.isSuccess } transformed { it.getOrThrow() })
edge(nodeWithError forwardTo nodeHandleError onCondition { it.isFailure } transformed { it.exceptionOrNull()?.message })
Could it help or is your case more complicated?micah
10/07/2025, 6:22 PMVadim Briliantov
10/08/2025, 9:50 PMmicah
10/09/2025, 10:33 PMVadim Briliantov
10/10/2025, 12:07 AMVadim Briliantov
10/10/2025, 12:08 AMfunctionalStrategy builderVadim Briliantov
10/10/2025, 12:09 AMmicah
10/10/2025, 1:12 PM