In my current application, I am throwing a custom runtime exception from my service and catching it on controller. And based on exception I want to show a message to user. But currently I have been redirecting to a error page.
So instead of redirecting to error page, I want user to be on the same page and want to show a customized message.
I have also tried to comment out error mapping line URLMappings.groovy. But didn't get any luck.