cds-routing-handlers icon indicating copy to clipboard operation
cds-routing-handlers copied to clipboard

exception handling with cds 6.x

Open marcellourbani opened this issue 2 years ago • 2 comments

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

marcellourbani avatar Dec 02 '22 13:12 marcellourbani

Is this library still maintained ?

sebastien-savalle avatar Jan 06 '23 13:01 sebastien-savalle

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

marcellourbani avatar Jan 10 '24 15:01 marcellourbani