Hi, I'm using Annotation Based controller. How do i get the model of the controller inside the HandlerExceptionResolver.resolveException ????
Printable View
Hi, I'm using Annotation Based controller. How do i get the model of the controller inside the HandlerExceptionResolver.resolveException ????
What is it that you want to do exactly? There is no generic way on retrieving the Model because there doesn't have to be one. In most cases the exception gets thrown BEFORE the ModelAndView object can get constructed so no proper Model and/or View object is available.
When the exception is thrown the ModelAndView was already created.
Here is what I'm trying to do:
When an un-handled exception happens and is thrown by the controller, the HandlerExceptionResolver.resolveException will send a notification to the application development team containing the session,request and exception data. Only data I could not get is the Model.