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

[FR] Support custom exception mappers in conjure-undertow-annotations #1704

Open
aldexis opened this issue Mar 11, 2022 · 0 comments
Open

[FR] Support custom exception mappers in conjure-undertow-annotations #1704

aldexis opened this issue Mar 11, 2022 · 0 comments

Comments

@aldexis
Copy link

aldexis commented Mar 11, 2022

What happened?

I am trying to make use of conjure-undertow-annotations and need exceptions to be mapped in a specific format so that it can interface with third-party code.

That format unfortunately doesn't fit the SerializableError format.

Our solution for now is to catch such errors, have our undertow interface return a union of error/response and custom-serialize that, but that feels non-ideal.

What did you want to happen?

Ideally, we would be able to indicate a custom exception serializer in the @handle annotation (which seems to be mentioned as a TODO there)

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