javax.faces.context.ExceptionHandler Java Examples
The following examples show how to use
javax.faces.context.ExceptionHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DeltaSpikeFacesContextWrapper.java From deltaspike with Apache License 2.0 | 6 votes |
@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; }
Example #2
Source File: CustomExceptionHandlerFactory.java From web-budget with GNU General Public License v3.0 | 5 votes |
/** * {@inheritDoc } * * @return */ @Override public ExceptionHandler getExceptionHandler() { final Set<CustomExceptionHandler> handlers = Set.of( new BusinessLogicExceptionHandler(), new ConstraintViolationExceptionHandler() ); return new CustomExceptionHandlerWrapper(this.getWrapped().getExceptionHandler(), handlers); }
Example #3
Source File: BridgeExceptionHandlerWrapper.java From deltaspike with Apache License 2.0 | 5 votes |
public BridgeExceptionHandlerWrapper(ExceptionHandler wrapped, BeanManager beanManager, Annotation exceptionQualifier) { this.wrapped = wrapped; this.beanManager = beanManager; this.exceptionQualifier = exceptionQualifier; }
Example #4
Source File: MockedJsf2TestContainer.java From deltaspike with Apache License 2.0 | 5 votes |
protected void initFacesContext() { FacesContextFactory facesContextFactory = (FacesContextFactory) FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY); this.facesContext = facesContextFactory.getFacesContext( this.servletContext, this.request, this.response, this.lifecycle); ((MockFacesContext) this.facesContext).setApplication(this.application); ExceptionHandler exceptionHandler = ((ExceptionHandlerFactory) FactoryFinder.getFactory(FactoryFinder.EXCEPTION_HANDLER_FACTORY)).getExceptionHandler(); this.facesContext.setExceptionHandler(exceptionHandler); ((MockFacesContext) this.facesContext).setExternalContext( new MockExternalContext(this.servletContext, this.request, this.response)); }
Example #5
Source File: CustomExceptionHandlerFactory.java From library with Apache License 2.0 | 5 votes |
/** * {@inheritDoc } * * @return */ @Override public ExceptionHandler getExceptionHandler() { final Set<CustomExceptionHandler> handlers = Set.of( new BusinessLogicExceptionHandler(), new ConstraintViolationExceptionHandler() ); return new CustomExceptionHandlerWrapper(this.getWrapped().getExceptionHandler(), handlers); }
Example #6
Source File: CustomExceptionHandlerFactory.java From web-budget with GNU General Public License v3.0 | 5 votes |
/** * {@inheritDoc } * * @return */ @Override public ExceptionHandler getExceptionHandler() { final Set<CustomExceptionHandler> handlers = Set.of( new BusinessLogicExceptionHandler(), new ConstraintViolationExceptionHandler() ); return new CustomExceptionHandlerWrapper(this.getWrapped().getExceptionHandler(), handlers); }
Example #7
Source File: ViewExpiredExceptionExceptionHandler.java From journaldev with MIT License | 4 votes |
public ViewExpiredExceptionExceptionHandler(ExceptionHandler wrapped) { this.wrapped = wrapped; }
Example #8
Source File: GlobalExceptionHandlerFactory.java From oxTrust with MIT License | 4 votes |
@Override public ExceptionHandler getExceptionHandler() { return new GlobalExceptionHandler(exceptionHandlerFactory.getExceptionHandler()); }
Example #9
Source File: GlobalExceptionHandler.java From oxTrust with MIT License | 4 votes |
@Override public ExceptionHandler getWrapped() { return this.wrapped; }
Example #10
Source File: GlobalExceptionHandler.java From oxTrust with MIT License | 4 votes |
GlobalExceptionHandler(ExceptionHandler exception) { this.wrapped = exception; }
Example #11
Source File: CustomExceptionHandlerWrapper.java From web-budget with GNU General Public License v3.0 | 4 votes |
/** * Constructor... * * @param exceptionHandler the wrapped handler */ CustomExceptionHandlerWrapper(ExceptionHandler exceptionHandler, Set<CustomExceptionHandler> customHandlers) { super(exceptionHandler); this.customExceptionHandlers = requireNonNull(customHandlers); this.undefinedExceptionHandler = new UndefinedExceptionHandler(); }
Example #12
Source File: ViewExpiredExceptionExceptionHandlerFactory.java From journaldev with MIT License | 4 votes |
@Override public ExceptionHandler getExceptionHandler() { return new ViewExpiredExceptionExceptionHandler(parent.getExceptionHandler()); }
Example #13
Source File: ViewExpiredExceptionExceptionHandler.java From journaldev with MIT License | 4 votes |
@Override public ExceptionHandler getWrapped() { return this.wrapped; }
Example #14
Source File: DefaultExceptionHandlerFactory.java From ee8-sandbox with Apache License 2.0 | 4 votes |
@Override public ExceptionHandler getExceptionHandler() { return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler()); }
Example #15
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 4 votes |
public DefaultExceptionHandler(ExceptionHandler wrapped) { super(wrapped); }
Example #16
Source File: DefaultExceptionHandlerFactory.java From ee8-sandbox with Apache License 2.0 | 4 votes |
@Override public ExceptionHandler getExceptionHandler() { return new DefaultExceptionHandler(this.getWrapped().getExceptionHandler()); }
Example #17
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 4 votes |
public DefaultExceptionHandler(ExceptionHandler wrapped) { super(wrapped); }
Example #18
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 4 votes |
public DefaultExceptionHandler(ExceptionHandler wrapped) { super(wrapped); }
Example #19
Source File: GlobalExceptionHandler.java From oxAuth with MIT License | 4 votes |
GlobalExceptionHandler(ExceptionHandler exception) { this.wrapped = exception; }
Example #20
Source File: GlobalExceptionHandler.java From oxAuth with MIT License | 4 votes |
@Override public ExceptionHandler getWrapped() { return this.wrapped; }
Example #21
Source File: GlobalExceptionHandlerFactory.java From oxAuth with MIT License | 4 votes |
@Override public ExceptionHandler getExceptionHandler() { return new GlobalExceptionHandler(exceptionHandlerFactory.getExceptionHandler()); }
Example #22
Source File: CustomExceptionHandlerWrapper.java From web-budget with GNU General Public License v3.0 | 4 votes |
/** * Constructor... * * @param exceptionHandler the wrapped handler */ CustomExceptionHandlerWrapper(ExceptionHandler exceptionHandler, Set<CustomExceptionHandler> customHandlers) { super(exceptionHandler); this.customExceptionHandlers = requireNonNull(customHandlers); this.undefinedExceptionHandler = new UndefinedExceptionHandler(); }
Example #23
Source File: DefaultExceptionHandlerFactory.java From ee7-sandbox with Apache License 2.0 | 4 votes |
@Override public ExceptionHandler getExceptionHandler() { ExceptionHandler parentHandler = parent.getExceptionHandler(); return new DefaultExceptionHandler(parentHandler); }
Example #24
Source File: DefaultExceptionHandler.java From ee7-sandbox with Apache License 2.0 | 4 votes |
public DefaultExceptionHandler(ExceptionHandler wrapped) { this.wrapped = wrapped; }
Example #25
Source File: DefaultExceptionHandler.java From ee7-sandbox with Apache License 2.0 | 4 votes |
@Override public ExceptionHandler getWrapped() { return this.wrapped; }
Example #26
Source File: DefaultExceptionHandlerFactory.java From spring4-sandbox with Apache License 2.0 | 4 votes |
@Override public ExceptionHandler getExceptionHandler() { ExceptionHandler parentHandler = parent.getExceptionHandler(); return new DefaultExceptionHandler(parentHandler); }
Example #27
Source File: DefaultExceptionHandler.java From spring4-sandbox with Apache License 2.0 | 4 votes |
public DefaultExceptionHandler(ExceptionHandler wrapped) { this.wrapped = wrapped; }
Example #28
Source File: DefaultExceptionHandler.java From spring4-sandbox with Apache License 2.0 | 4 votes |
@Override public ExceptionHandler getWrapped() { return this.wrapped; }
Example #29
Source File: BridgeExceptionHandlerWrapper.java From deltaspike with Apache License 2.0 | 4 votes |
@Override public ExceptionHandler getWrapped() { return wrapped; }
Example #30
Source File: DefaultErrorViewAwareExceptionHandlerWrapper.java From deltaspike with Apache License 2.0 | 4 votes |
public DefaultErrorViewAwareExceptionHandlerWrapper(ExceptionHandler wrapped) { this.wrapped = wrapped; }