[jboss-user] [JBoss Seam] - Catching Runtime Exceptions

terryb do-not-reply at jboss.com
Sun Oct 28 05:21:26 EDT 2007


Runtime exceptions are caught in pages.xml file. Is it possible to append own message specified in pages.xml to the exception message?

Say for exception thrown: 

org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): au.edu.tisc.entity.ApplicationMessage


  | pages.xml
  | ...
  | <exception class="javax.persistence.PersistenceException">
  |   <end-conversation/>    
  |   <redirect view-id="/error.xhtml">
  |     <message>Database operation failed, please retry...</message>
  |    </redirect>
  | </exception>
  | ...
  | 



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

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



More information about the jboss-user mailing list