[jboss-user] [JBoss Seam] - pages.xml <exceptions>

monkeyden do-not-reply at jboss.com
Wed Apr 18 11:25:03 EDT 2007


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>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038470#4038470

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038470



More information about the jboss-user mailing list