Announcement Announcement Module
Collapse
No announcement yet.
How do I get the model inside HandlerExceptionResolver in Annotation Based Controller Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I get the model inside HandlerExceptionResolver in Annotation Based Controller

    Hi, I'm using Annotation Based controller. How do i get the model of the controller inside the HandlerExceptionResolver.resolveException ????

  • #2
    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.

    Comment


    • #3
      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.

      Comment

      Working...
      X