0 Replies Latest reply on Apr 18, 2007 11:25 AM by monkeyden

    pages.xml <exceptions>

    monkeyden

      Does the order of in pages.xml influence how exceptions are handled? That is to say, does this NodeList act as a try catch block? I assume this is true, by the presence of the last one (no class specified), but want to be sure.

      http://docs.jboss.com/seam/1.1.6.GA/reference/en/html_single/#d0e4065

      <exception class="javax.persistence.EntityNotFoundException">
       <redirect view-id="/error.xhtml">
       <message>#{messages['not.found.error']}</message>
       </redirect>
       </exception>
       <exception class="java.lang.IllegalStateException">
       <end-conversation />
       <redirect view-id="/index.xhtml">
       <message>#{messages['error.session.expired']}</message>
       </redirect>
       </exception>
       <exception class="javax.persistence.OptimisticLockException">
       <end-conversation />
       <redirect view-id="/error.xhtml">
       <message>#{messages['concurrent.modification.of.data']}</message>
       </redirect>
       </exception>
       <exception class="org.jboss.seam.security.AuthorizationException">
       <redirect>
       <message>#{messages['not.authorized.error']}</message>
       </redirect>
       </exception>
       <exception class="org.jboss.seam.security.NotLoggedInException">
       <end-conversation />
       <redirect view-id="/login.xhtml">
       <message>#{messages['please.login.first']}</message>
       </redirect>
       </exception>
       <exception>
       <redirect view-id="/error.xhtml">
       <message>#{messages['i.dont.know.error']}</message>
       </redirect>
       </exception>