Examples of PageException


Examples of cli_fmw.main.PageException

            pnlForExpTable.add((JPanel) pageToAdd, java.awt.BorderLayout.CENTER);
            pnlForExpTable.revalidate();
            pnlForExpTable.repaint();
            return pageToAdd;
        } else {
            throw new PageException("Страница не может быть добавлена");
        }
    }
View Full Code Here

Examples of net.diegomaia.vraptor.saci.exception.PageException

  private void definePagesURLs(PagesMethods pagesMethods, Class<?> type) {

    if (pagesMethods.getLoginPageMethod() != null) {
      if (this.loginPageURLClass != null) {
        throw new PageException("Multiple login pages not allowed.");
      } else {
        this.loginPageURLClass = type;
        this.loginPageURLMethod = pagesMethods.getLoginPageMethod();
        this.logger.info("Login page >> " + this.loginPageURLMethod);
      }
    }
   
    if (pagesMethods.getAccessDeniedPageMethod() != null) {
      if (this.accessDeniedPageURLClass != null) {
        throw new PageException("Multiple access denied pages not allowed.");
      } else {
        this.accessDeniedPageURLClass = type;
        this.accessDeniedPageURLMethod = pagesMethods.getAccessDeniedPageMethod();
        this.logger.info("Access denied page >> " + this.accessDeniedPageURLClass);
      }
View Full Code Here

Examples of net.diegomaia.vraptor.saci.exception.PageException

   
    for (Method method : resource.getMethods()) {
      if (method.isAnnotationPresent(LoginPage.class)) {
        if (loginPageMethod == null) {
          if (this.hasParameters(method)) {
            throw new PageException("Login page method cannot have parameters.");
          } else {
            loginPageMethod = method;
          }
        } else {
          throw new PageException("Multiple login pages not allowed.");
        }
      }
      if (method.isAnnotationPresent(AccessDeniedPage.class)) {
        if (accessDeniedPageMethod == null) {
          if (this.hasParameters(method)) {
            throw new PageException("Access denied page method cannot have parameters.");
          } else {
            accessDeniedPageMethod = method;
          }
        } else {
          throw new PageException("Multiple access denied pages not allowed.");
        }
      }
     
    }
   
View Full Code Here

Examples of railo.runtime.exp.PageException

    if(StringUtil.isEmpty(msg,true)) msg=t.getClass().getName();
   
    StringBuilder sb=new StringBuilder(msg);
   
    if(t instanceof PageException){
      PageException pe=(PageException)t;
      String detail = pe.getDetail();
      if(!StringUtil.isEmpty(detail,true)) {
        sb.append('\n');
        sb.append(detail);
      }
    }
View Full Code Here

Examples of railo.runtime.exp.PageException

    }
     
  }

  private PageException toPageException(Throwable t) {
    PageException pe = Caster.toPageException(t);
    if(pe instanceof NativeException) {
      ((NativeException) pe).setAdditional(KeyConstants._url, url);
    }
    return pe;
  }
View Full Code Here

Examples of railo.runtime.exp.PageException

  private static Method setAdditional;


  public static PageException createException(SessionFactoryData data, Component cfc, String msg, String detail) {
   
    PageException pe = createException((ORMSession)null,cfc,msg,detail);
    if(data!=null)setAddional(pe,data);
    return pe;
  }
View Full Code Here

Examples of railo.runtime.exp.PageException

    PageException pe = createException((ORMSession)null,cfc,msg,detail);
    if(data!=null)setAddional(pe,data);
    return pe;
  }
  public static PageException createException(SessionFactoryData data, Component cfc, Throwable t) {
    PageException pe = createException((ORMSession)null,cfc,t);
    if(data!=null)setAddional(pe,data);
    return pe;
  }
View Full Code Here

Examples of railo.runtime.exp.PageException

    return pe;
  }

 
  public static PageException createException(ORMSession session,Component cfc,Throwable t) {
    PageException pe = CFMLEngineFactory.getInstance().getExceptionUtil().createApplicationException(t.getMessage());
    pe.setStackTrace(t.getStackTrace());
    if(session!=null)setAddional(session,pe);
    if(cfc!=null)setContext(pe,cfc);
    return pe;
  }
View Full Code Here

Examples of railo.runtime.exp.PageException

    return pe;
  }
 

  public static PageException createException(ORMSession session,Component cfc,String message,String detail) {
    PageException pe = CFMLEngineFactory.getInstance().getExceptionUtil().createApplicationException(message);
    if(session!=null)setAddional(session,pe);
    if(cfc!=null)setContext(pe,cfc);
    return pe;
  }
View Full Code Here

Examples of railo.runtime.exp.PageException

  public void flush(PageContext pc) throws PageException {
    try {
      session().flush();
    }
    catch(ConstraintViolationException cve){
      PageException pe = ExceptionUtil.createException(this,null,cve);
      if(!Util.isEmpty(cve.getConstraintName())) {
        ExceptionUtil.setAdditional(pe, CommonUtil.createKey("constraint name"), cve.getConstraintName());
      }
      throw pe;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.