errors-spring-boot-starter icon indicating copy to clipboard operation
errors-spring-boot-starter copied to clipboard

Support Runtime Message(s)

Open asksage opened this issue 3 years ago • 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.

asksage avatar Jul 16 '20 22:07 asksage