Announcement Announcement Module
Collapse
No announcement yet.
Where to catch freemarker exceptions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Where to catch freemarker exceptions

    Hi!

    We sometimes get freemarker exceptions like

    Expression articles[0] is undefined on line 30, column 12 in frontpage_page.ftl.

    Where is the best place to catch these exceptions and set the statuscode to sometinhg else than 200 so resin don't cache the page with the errorcode (and any other errorhandling we want for this situations)?

    Doing this in HandlerInterceptor.afterCompletion I guess is to late since the viw is already rendered (?).

    Any ideas?

    TIA!


    -Kaj
Working...
X