[jboss-user] [JBoss Seam] - Custom Exception Handler

jtucker do-not-reply at jboss.com
Thu Dec 7 10:43:35 EST 2006


I'm trying to implement a custom exception handler based on exceptions.xml. The aim is to have the handler email the details any exceptions which occur - basically an email version of the seam debug page.

The exceptions framework doesn't seem to support plugging in custom handlers. So at the moment I am working around it by copying the built-in Exceptions component class, adding the new handler in initialize() and overriding the default component with @Install(precedence). Unfortunately the Exceptions class isn't really designed for extension - hence the need to copy it.

Can anyone suggest a better solution?

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

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



More information about the jboss-user mailing list