Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception handling with cds 6.x #23

Open
marcellourbani opened this issue Dec 2, 2022 · 2 comments
Open

exception handling with cds 6.x #23

marcellourbani opened this issue Dec 2, 2022 · 2 comments

Comments

@marcellourbani
Copy link

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

@sebastien-savalle
Copy link

Is this library still maintained ?

@marcellourbani
Copy link
Author

marcellourbani commented Jan 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants