Package javax.faces.event

Examples of javax.faces.event.ExceptionQueuedEvent


    if (unhandledExceptionQueuedEvents != null) {
      Iterator<ExceptionQueuedEvent> itr = unhandledExceptionQueuedEvents.iterator();

      while (itr.hasNext()) {
        ExceptionQueuedEvent exceptionQueuedEvent = itr.next();
        ExceptionQueuedEventContext exceptionQueuedEventContext = exceptionQueuedEvent.getContext();
        unhandledException = exceptionQueuedEventContext.getException();

        break;
      }
    }
View Full Code Here


    FacesContext facesContext = FacesContext.getCurrentInstance();
    boolean isDevelopment = facesContext.isProjectStage(ProjectStage.Development);

    while (itr.hasNext()) {
      ExceptionQueuedEvent exceptionQueuedEvent = itr.next();
      ExceptionQueuedEventContext exceptionQueuedEventContext = exceptionQueuedEvent.getContext();

      if (exceptionQueuedEventContext != null) {
        Throwable throwable = exceptionQueuedEventContext.getException();

        if (throwable != null) {
View Full Code Here

         * @since 2.0
         */
        public void handle() throws FacesException {

            for (Iterator<ExceptionQueuedEvent> i = getUnhandledExceptionQueuedEvents().iterator(); i.hasNext();) {
                ExceptionQueuedEvent event = i.next();
                ExceptionQueuedEventContext context =
                      (ExceptionQueuedEventContext) event.getSource();
                try {
                    Throwable t = context.getException();
                    if (isRethrown(t, (context.inBeforePhase() || context.inAfterPhase()))) {
                        handled = event;
                        Throwable unwrapped = getRootCause(t);
View Full Code Here

TOP

Related Classes of javax.faces.event.ExceptionQueuedEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.