public class ExceptionHandlerDispatch extends Object implements Serializable
ExceptionToCatch
events and handler dispatcher. All handlers are invoked from this class. This
class is immutable.Constructor and Description |
---|
ExceptionHandlerDispatch() |
Modifier and Type | Method and Description |
---|---|
void |
executeHandlers(ExceptionToCatch eventException,
javax.enterprise.inject.spi.BeanManager bm,
CatchExtension extension,
javax.enterprise.event.Event<ExceptionStack> stackEvent)
Observes the event, finds the correct exception handler(s) and invokes them.
|
ExceptionStack |
getExceptionStack() |
ExceptionToCatch |
getExceptionToCatch() |
public void executeHandlers(@Observes@Any ExceptionToCatch eventException, javax.enterprise.inject.spi.BeanManager bm, CatchExtension extension, javax.enterprise.event.Event<ExceptionStack> stackEvent) throws Throwable
eventException
- exception to be invokedbm
- active bean managerextension
- catch extension instance to obtain handlersstackEvent
- Event for modifying the exception stackThrowable
- If a handler requests the exception to be re-thrown.@Produces @ConversationScoped @Named(value="handledException") public ExceptionStack getExceptionStack()
@Produces @ConversationScoped @Named(value="caughtException") public ExceptionToCatch getExceptionToCatch()
Copyright © 2008–2013 Seam Framework. All rights reserved.