/** * <p>The default behavior of this method is to * call {@link javax.faces.context.ExceptionHandler#handle()} * on the wrapped {@link ExceptionHandler} object.</p> * * @see javax.faces.context.ExceptionHandler#handle() */ @Override public void handle() throws FacesException { getWrapped().handle(); }
@Override public void processEvent(SystemEvent exceptionQueuedEvent) throws AbortProcessingException { //Check if this is an ajax request, but take advantage of exceptionQueuedEvent facesContext isAjaxRequest(exceptionQueuedEvent); super.processEvent(exceptionQueuedEvent); }
@Override public void handle() throws FacesException { Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { if (handle(events.next())) { events.remove(); } } super.handle(); }
/** * {@inheritDoc} */ @Override public Iterable<ExceptionQueuedEvent> getHandledExceptionQueuedEvents() { init(); if (!isUseMyFacesErrorHandling()) { return super.getHandledExceptionQueuedEvents(); } else { return handled == null ? Collections.<ExceptionQueuedEvent>emptyList() : handled; } }
/** * {@inheritDoc} */ @Override public ExceptionQueuedEvent getHandledExceptionQueuedEvent() { init(); if (!isUseMyFacesErrorHandling()) { return super.getHandledExceptionQueuedEvent(); } else { return handledAndThrown; } }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.ExceptionHandler#processEvent(javax.faces.event.SystemEvent)} * on the wrapped {@link ExceptionHandler} object.</p> * * @see javax.faces.context.ExceptionHandler#processEvent(javax.faces.event.SystemEvent) */ @Override public void processEvent(SystemEvent event) throws AbortProcessingException { getWrapped().processEvent(event); }
super.handle();
@Override public void processEvent(SystemEvent exceptionQueuedEvent) throws AbortProcessingException { //Check if this is an ajax request, but take advantage of exceptionQueuedEvent facesContext isAjaxRequest(exceptionQueuedEvent); super.processEvent(exceptionQueuedEvent); }
/** * <p>The default behavior of this method is to * call {@link javax.faces.context.ExceptionHandler#getRootCause(Throwable)} * on the wrapped {@link ExceptionHandler} object.</p> * * @see javax.faces.context.ExceptionHandler#getRootCause(Throwable) */ @Override public Throwable getRootCause(Throwable t) { return getWrapped().getRootCause(t); }
/** * {@inheritDoc} */ @Override public void processEvent(SystemEvent exceptionQueuedEvent) throws AbortProcessingException { init(exceptionQueuedEvent); if (!isUseMyFacesErrorHandling()) { super.processEvent(exceptionQueuedEvent); } else { if (unhandled == null) { unhandled = new LinkedList<ExceptionQueuedEvent>(); } unhandled.add((ExceptionQueuedEvent)exceptionQueuedEvent); } }
@Override public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() { return getWrapped().getUnhandledExceptionQueuedEvents(); }
/** * <p>The default behavior of this method is to call * {@link ExceptionHandler#getHandledExceptionQueuedEvents()} on the wrapped * {@link ExceptionHandler} object.</p> * * @see ExceptionHandler#getHandledExceptionQueuedEvents() */ @Override public Iterable<ExceptionQueuedEvent> getHandledExceptionQueuedEvents() { return getWrapped().getHandledExceptionQueuedEvents(); }
/** * <p>The default behavior of this method is to * call {@link ExceptionHandler#getUnhandledExceptionQueuedEvents()} * on the wrapped {@link ExceptionHandler} object.</p> * * @see ExceptionHandler#getUnhandledExceptionQueuedEvents() */ @Override public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() { return getWrapped().getUnhandledExceptionQueuedEvents(); }
/** * <p>The default behavior of this method is to call * {@link ExceptionHandler#getHandledExceptionQueuedEvents()} on the wrapped * {@link ExceptionHandler} object.</p> * * @see ExceptionHandler#getHandledExceptionQueuedEvents() */ @Override public Iterable<ExceptionQueuedEvent> getHandledExceptionQueuedEvents() { return getWrapped().getHandledExceptionQueuedEvents(); }