Package org.hdiv.exception

Examples of org.hdiv.exception.StateValidationException


      ExceptionQueuedEvent event = i.next();
      ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource();
      Throwable t = context.getException();
      Throwable cause = this.getRootCause(t);
      if (cause instanceof StateValidationException) {
        StateValidationException hdivExc = (StateValidationException) cause;
        if (log.isDebugEnabled()) {
          log.debug("HDIV StateValidationException captured: " + hdivExc);
        }
        try {
          FacesContext fc = FacesContext.getCurrentInstance();
View Full Code Here


      // Redirect to Hdiv errors page
      try {
        String contextPath = context.getExternalContext().getRequestContextPath();
        context.getExternalContext().redirect(contextPath + this.config.getErrorPage());
      } catch (IOException e) {
        throw new StateValidationException();
      }
    } else {
      // Previous strategy doesn't work with immediate components because
      // the execution of business logic continues running-
      // An exception is thrown to be catched by the ExceptionHandler
      // (JSF2)
      throw new StateValidationException();
    }

  }
View Full Code Here

TOP

Related Classes of org.hdiv.exception.StateValidationException

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.