CLOVIS
04/27/2026, 9:39 PMwithError , but it doesn't really work with context parameters, since different errors can register different raises.
What about:
withError({ it: ErrorA -> "Foo $it" }, { it: ErrorB -> "Bar $it" }) {
// Success code
}
The inner lambda gets context(Raise<ErrorA>, Raise<ErrorB>) and all error handlers combine into a single context(Raise<T>) (String in this example).
What do you think?Alejandro Serrano.Mena
04/28/2026, 6:56 AM