Hi! Since `Try` is deprecated.. is the new 'patter...
# arrow
j
Hi! Since
Try
is deprecated.. is the new 'pattern' to handle exceptions this
Copy code
Either.catch { call.receive<ModelCreateDto>() }.fold({
    // handle ktor serialization exceptions... Try is deprecated
    call.respond(HttpStatusCode.BadRequest, "invalid email")
})
{
    // ...success case
}
...or is there some other (somewhat simpler) alternative ?