cds-routing-handlers
cds-routing-handlers copied to clipboard
exception handling with cds 6.x
When I raise an exception in a function/action, cds 5.x returns me a 5xx or 4xx error, as expected 6.x dies Afraid I forgot to take snapshots/more details, this happened a while ago. Thought a note could still be useful for other users
Is this library still maintained ?
Is this library still maintained ?
Doesn't look like, I should probably refactormy code. Anyway for the record I got this working with 7.x using a custom server:
await cds.serve("all").from(csn).in(app)
const hdl = createCombinedHandler({ handler: [FunctionHandler] })
hdl(cds.services.CatalogService)
exceptions work too