Skip to content

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

Description

@aldexis

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions