Guido Wehner
10/17/2023, 1:48 PMCLOVIS
10/17/2023, 1:53 PMclass InputError
class OutputError(val errors: NonEmptyList<InputError>)
context(Raise<NonEmptyList<InputError>>)
fun bar() { … }
context(Raise<OutputError>)
fun foo() {
withError(::OutputError) {
bar()
}
}
https://apidocs.arrow-kt.io/arrow-core/arrow.core.raise/with-error.html