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

Improve dev experience of creating custom ProblemPostProcessor #301

Closed
morgenthum opened this issue Sep 8, 2023 · 4 comments · Fixed by #311 or #312
Closed

Improve dev experience of creating custom ProblemPostProcessor #301

morgenthum opened this issue Sep 8, 2023 · 4 comments · Fixed by #311 or #312

Comments

@morgenthum
Copy link

I want to implement a ProblemPostProcessor and need access to the original exception. The ProblemContext is passed to the apply-Method, but it's fields, including cause, is package scoped.

It would be nice to provide getters for the fields in the ProblemContext class.

@mbechto
Copy link

mbechto commented Sep 26, 2023

We are in need of this as well, as it would make a lot of nice use cases possible.

Btw. what is the intended way of registering ProblemPostProcessors at runtime?

@lwitkowski lwitkowski changed the title Access fields of ProblemContext Improve dev experience of creating custom ProblemPostProcessor Oct 27, 2023
@lwitkowski
Copy link
Collaborator

I've slightly changed the title to make the scope of this issue a bit bigger:

@lwitkowski
Copy link
Collaborator

@morgenthum @mbechto, happy to report that v3.1.0 with this feature is now available in Maven Central, let me guys now how it works for you.

@mbechto
Copy link

mbechto commented Oct 31, 2023

Great news, thanks @lwitkowski! We will test it and report back to you soon.

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