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

Feature request: custom error handling #463

Open
calvinl opened this issue May 26, 2022 · 0 comments
Open

Feature request: custom error handling #463

calvinl opened this issue May 26, 2022 · 0 comments

Comments

@calvinl
Copy link

calvinl commented May 26, 2022

Hi, and thank you for this wonderful library!

After a few days of using this package, I started looking into error handling and while it's great that provideErrorExtensions gives us a window into the error returned by the REST route, the documentation also warns that it can leak unintentionally leak information.

Is there any way, short of custom resolvers, for us to format the error message in a way that would be useful for the API consumer, but avoid leaking information that we don't want to leak? For example, it's useful to have the HTTP status code and the message, but maybe not so much information about the REST call being made, e.g. its url, params, etc.

I would also be willing to submit a PR for something like this if there's interest, and if a maintainer can review/merge/release.

Thanks again!

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

1 participant