/** * <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#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#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#getUnhandledExceptionQueuedEvents()} * on the wrapped {@link ExceptionHandler} object.</p> * * @see ExceptionHandler#getUnhandledExceptionQueuedEvents() */ public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() { return getWrapped().getUnhandledExceptionQueuedEvents(); }
private boolean isUnhandledExceptionQueued(FacesContext context) { return context.getExceptionHandler().getUnhandledExceptionQueuedEvents() != null && context.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator().hasNext(); }
private boolean isUnhandledExceptionQueued(FacesContext context) { return context.getExceptionHandler().getUnhandledExceptionQueuedEvents() != null && context.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator().hasNext(); }
@Override public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() { return getWrapped().getUnhandledExceptionQueuedEvents(); }
/** * <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#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#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#getUnhandledExceptionQueuedEvents()} * on the wrapped {@link ExceptionHandler} object.</p> * * @see ExceptionHandler#getUnhandledExceptionQueuedEvents() */ @Override public Iterable<ExceptionQueuedEvent> getUnhandledExceptionQueuedEvents() { return getWrapped().getUnhandledExceptionQueuedEvents(); }
private boolean isUnhandledExceptionQueued(FacesContext context) { return context.getExceptionHandler().getUnhandledExceptionQueuedEvents() != null && context.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator().hasNext(); }
/** * <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(); }
protected Throwable getJSF2UnhandledException(FacesContext facesContext) { Throwable unhandledException = null; ExceptionHandler exceptionHandler = facesContext.getExceptionHandler(); Iterable<ExceptionQueuedEvent> unhandledExceptionQueuedEvents = exceptionHandler.getUnhandledExceptionQueuedEvents(); if (unhandledExceptionQueuedEvents != null) { Iterator<ExceptionQueuedEvent> itr = unhandledExceptionQueuedEvents.iterator(); while (itr.hasNext()) { ExceptionQueuedEvent exceptionQueuedEvent = itr.next(); ExceptionQueuedEventContext exceptionQueuedEventContext = exceptionQueuedEvent.getContext(); unhandledException = exceptionQueuedEventContext.getException(); break; } } return unhandledException; }
protected Throwable getJSF2UnhandledException(FacesContext facesContext) { Throwable unhandledException = null; ExceptionHandler exceptionHandler = facesContext.getExceptionHandler(); Iterable<ExceptionQueuedEvent> unhandledExceptionQueuedEvents = exceptionHandler.getUnhandledExceptionQueuedEvents(); if (unhandledExceptionQueuedEvents != null) { Iterator<ExceptionQueuedEvent> itr = unhandledExceptionQueuedEvents.iterator(); while (itr.hasNext()) { ExceptionQueuedEvent exceptionQueuedEvent = itr.next(); ExceptionQueuedEventContext exceptionQueuedEventContext = exceptionQueuedEvent.getContext(); unhandledException = exceptionQueuedEventContext.getException(); break; } } return unhandledException; }
public void afterPhase(PhaseEvent event) { FacesContext facesContext = event.getFacesContext(); // stop recording current phase time EtmPoint point = (EtmPoint) facesContext.getAttributes().get(CURRENT_PHASE_POINT); if (point != null) { // alter name if we encounter an exception Iterator<ExceptionQueuedEvent> it = facesContext.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator(); if (it.hasNext()) { ExceptionQueuedEvent exceptionQueuedEvent = it.next(); point.alterName(point.getName() + " [" + exceptionQueuedEvent.getContext().getException().getClass().getSimpleName() + "]"); } point.collect(); facesContext.getAttributes().remove(CURRENT_PHASE_POINT); } }
if( facesContext.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator().hasNext())
if( facesContext.getExceptionHandler().getUnhandledExceptionQueuedEvents().iterator().hasNext())