org.jboss.seam.exception.control
Class ExceptionHandlerDispatch
java.lang.Object
org.jboss.seam.exception.control.ExceptionHandlerDispatch
public class ExceptionHandlerDispatch
- extends Object
Observer of ExceptionToCatchEvent events and handler dispatcher.
All handlers are invoked from this class. This class is immutable.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionHandlerDispatch
public ExceptionHandlerDispatch()
executeHandlers
public void executeHandlers(@Observes
ExceptionToCatchEvent eventException,
javax.enterprise.inject.spi.BeanManager bm,
CatchExtension extension)
throws Throwable
- Observes the event, finds the correct exception handler(s) and invokes them.
- Parameters:
eventException - exception to be invokedbm - active bean managerextension - catch extension instance to obtain handlers
- Throws:
Throwable - If a handler requests the exception to be re-thrown.
Copyright © 2010 Seam Framework. All Rights Reserved.