errors-spring-boot-starter
errors-spring-boot-starter copied to clipboard
Support Runtime Message(s)
Ideally, there should be a way to dynamically pass message instead of always getting from MessageSource.
It should be pretty easy to implement e.g. HandledException can add a constructor where it takes in message instead of arguments. And that message can be set dynamically using WebErrorHandler.
inside withMessage (if I am not mistaken) in WebErrorHandlers if the message is present in HandledException then use that other wise get from messageSource.