alimate/errors-spring-boot-starter

Support Runtime Message(s)

asksage opened this issue · 0 comments

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.