Search in sources :

Example 1 with DefaultErrorViewAwareExceptionHandlerWrapper

use of org.apache.deltaspike.jsf.impl.config.view.DefaultErrorViewAwareExceptionHandlerWrapper in project deltaspike by apache.

the class DeltaSpikeFacesContextWrapper method getExceptionHandler.

@Override
public ExceptionHandler getExceptionHandler() {
    lazyInit();
    ExceptionHandler exceptionHandler = this.wrappedFacesContext.getExceptionHandler();
    if (this.bridgeExceptionHandlerActivated) {
        exceptionHandler = new BridgeExceptionHandlerWrapper(exceptionHandler, this.beanManager, this.bridgeExceptionQualifier);
    }
    if (this.defaultErrorViewExceptionHandlerActivated) {
        exceptionHandler = new DefaultErrorViewAwareExceptionHandlerWrapper(exceptionHandler);
    }
    return exceptionHandler;
}
Also used : ExceptionHandler(javax.faces.context.ExceptionHandler) BridgeExceptionHandlerWrapper(org.apache.deltaspike.jsf.impl.exception.control.BridgeExceptionHandlerWrapper) DefaultErrorViewAwareExceptionHandlerWrapper(org.apache.deltaspike.jsf.impl.config.view.DefaultErrorViewAwareExceptionHandlerWrapper)

Aggregations

ExceptionHandler (javax.faces.context.ExceptionHandler)1 DefaultErrorViewAwareExceptionHandlerWrapper (org.apache.deltaspike.jsf.impl.config.view.DefaultErrorViewAwareExceptionHandlerWrapper)1 BridgeExceptionHandlerWrapper (org.apache.deltaspike.jsf.impl.exception.control.BridgeExceptionHandlerWrapper)1