org.jboss.solder.exception.control
Class ExceptionHandlerDispatch
java.lang.Object
org.jboss.solder.exception.control.ExceptionHandlerDispatch
public class ExceptionHandlerDispatch
- extends Object
Observer of ExceptionToCatch events and handler dispatcher. All handlers are invoked from this class. This
class is immutable.
|
Method Summary |
void |
executeHandlers(org.jboss.solder.exception.control.ExceptionToCatch eventException,
javax.enterprise.inject.spi.BeanManager bm,
CatchExtension extension,
javax.enterprise.event.Event<org.jboss.solder.exception.control.ExceptionStack> stackEvent)
Observes the event, finds the correct exception handler(s) and invokes them. |
org.jboss.solder.exception.control.ExceptionStack |
getExceptionStack()
|
org.jboss.solder.exception.control.ExceptionToCatch |
getExceptionToCatch()
|
| 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@Any
org.jboss.solder.exception.control.ExceptionToCatch eventException,
javax.enterprise.inject.spi.BeanManager bm,
CatchExtension extension,
javax.enterprise.event.Event<org.jboss.solder.exception.control.ExceptionStack> stackEvent)
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 handlersstackEvent - Event for modifying the exception stack
- Throws:
Throwable - If a handler requests the exception to be re-thrown.
getExceptionStack
@Produces
@ConversationScoped
@Named(value="handledException")
public org.jboss.solder.exception.control.ExceptionStack getExceptionStack()
getExceptionToCatch
@Produces
@ConversationScoped
@Named(value="caughtException")
public org.jboss.solder.exception.control.ExceptionToCatch getExceptionToCatch()
Copyright © 2008-2011 Seam Framework. All Rights Reserved.