Chalice REST API middleware cannot catch exceptions raised from view functions
Chalice REST API middleware cannot catch exceptions raised from view functions: a task in LegoFlow-SWE (Harbor dataset). When a view function raises an exception that is not a subclass of ChaliceViewError , Chalice’s REST API handler catches it internally and converts it into a generic 500…
The task
When a view function raises an exception that is not a subclass of `ChaliceViewError`, Chalice’s REST API handler catches it internally and converts it into a generic 500 `Response` object. The middleware registered for the REST API (`@app.middleware('http')`) never sees the original exception — it only receives the…
Part of Lego-X/LegoFlow-SWE.