Join Slack
Powered by
Is there a way to handle exceptions within a `Rout...
# ktor
a
andrewoma
01/17/2017, 10:18 PM
Is there a way to handle exceptions within a
Route
. e.g.
Copy code
route("api") { // Install exception handler here get(”/foo”) { // Exception here } }
Where exceptions can be mapped to a JSON response with custom status codes etc
2
Views
Open in Slack
Previous
Next