Improve assertion message in PersistenceExceptionTranslationInterceptor#24484
Conversation
It's a bit odd asserting the bean factory with != null and the given message.
|
Spring is rather consistent in that regard, when multiple properties could have been set and Spring later determines that the current state is illegal. As for the exception message, "No XXX set" is also pretty standard across core Spring for missing properties; however, your proposal would provide more detailed information to the user and would align with the message in So if you'd like to revert back to Cheers |
|
Thanks for letting me know, I understand and the argument makes perfect sense. As I applied the suggested change, you see that I still like the more detailed exception message better. |
|
This has been merged into Thanks |
It's a bit odd asserting the bean factory with != null and the given message.