-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Make JooqExceptionTranslator conditional #38736
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
Comments
All We'd probably also want to avoid I think the third option isn't too bad and perhaps we could even change the existing I'm curious if you're finding the translation happening twice an actual problem? Is it a performance issue or is it somehow doing a translation that you don't want? |
It's not a real problem. But very confusing when debugging that it is translated 2 times. It is also difficult to understand why the exception is translated twice. It's not intuitive. You also have to pay attention to the order, if it's not correct it won't work. Maybe something like this |
Superseded by #38762. |
I would like to set my own Exception Translator or ExecuteListener to translate exception. Currently the exception is always translated twice.
Can't the bean be set conditionally? What is the use case for the Order to have 2 beans?
See
JooqAutoConfiguration
Proposal if only 1 provider is necessary
Quick Fix with order
Or own interface for jOOQ Bean Translator
public interface JooqExceptionTranslator extends ExecuteListener
What do you think?
The text was updated successfully, but these errors were encountered: