Package com.dotmarketing.exception

Examples of com.dotmarketing.exception.DotRuntimeException


  public static VelocityEngine getEngine(){
    if(ve == null){
      init();
      if(ve == null){
        Logger.fatal(VelocityUtil.class,"Velocity Engine unable to initialize : THIS SHOULD NEVER HAPPEN");
        throw new DotRuntimeException("Velocity Engine unable to initialize : THIS SHOULD NEVER HAPPEN");
      }
    }
    return ve;
  }
View Full Code Here


  public static String getDotResourceLoaderClassName() {
    if(dotResourceLoaderClassName == null){
      init();
      if(dotResourceLoaderClassName == null){
        Logger.fatal(VelocityUtil.class,"Velocity Engine unable to initialize : THIS SHOULD NEVER HAPPEN");
        throw new DotRuntimeException("Velocity Engine unable to initialize : THIS SHOULD NEVER HAPPEN");
      }
    }
    return dotResourceLoaderClassName;
  }
View Full Code Here

    CharStream input;
    try {
      input = new ANTLRInputStream(new ByteArrayInputStream(sql.getBytes("UTF-8")));
    } catch (Exception e) {
      Logger.error(SQLQueryFactory.class,e.getMessage(),e);
      throw new DotRuntimeException(e.getMessage(), e);
    }
        TokenSource lexer = new CmisSqlLexer(input);
       
        TokenStream tokens = new CommonTokenStream(lexer);
        CommonTree tree;
    try {
      tree = (CommonTree) new CmisSqlParser(tokens).query().getTree();
    } catch (RecognitionException e) {
      Logger.error(SQLQueryFactory.class,e.getMessage(),e);
      throw new DotRuntimeException(e.getMessage(), e);
    }
        CommonTreeNodeStream nodes = new CommonTreeNodeStream(tree);
//    new Bufferedt
        nodes.setTokenStream(tokens);
//        CmisSqlSimpleWalker walker = new CmisSqlSimpleWalker(nodes);
View Full Code Here

    // Load the MD5 helper used to calculate signatures.
    try {
      md5Helper = MessageDigest.getInstance("MD5");
    } catch (NoSuchAlgorithmException e) {
      Logger.error(this, e.getMessage(), e);
      throw new DotRuntimeException("No MD5", e);
    }

  }
View Full Code Here

    String p = "";
    try {
      p = idapi.find(folder).getPath();
    } catch (Exception e) {
      Logger.error(DotWebdavHelper.class, e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(), e);
    }
    if(p.endsWith("/"))
      p = p + "/";
    String path = p.replace("/", java.io.File.separator);
    path = tempFolder.getPath() + java.io.File.separator + name;
View Full Code Here

          Folder fromFolder;
          try {
            fromFolder = folderAPI.findFolderByPath(getPath(fromPath), host,user,false);
          } catch (Exception e1) {
            Logger.error(DotWebdavHelper.class, e1.getMessage(), e1);
            throw new DotRuntimeException(e1.getMessage(), e1);
          }
          if(fromFolder != null){
            Logger.debug(this, "Calling folder factory to move from " + idapi.find(fromFolder).getPath() + " to " + toParentPath);
            Logger.debug(this, "the from folder inode is " + fromFolder.getInode());
          }else{
View Full Code Here

  private void setResourceContent(String resourceUri, InputStream content,  String contentType, String characterEncoding, User user) throws Exception {
    try {
      setResourceContent(resourceUri, content, contentType, characterEncoding, Calendar.getInstance().getTime(), user, false);
    } catch (Exception e) {
      Logger.error(this,e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage(),e);
    }
  }
View Full Code Here

        }
      }
    } catch (Exception e) {

      Logger.error(TemplateFactoryImpl.class, "findTemplates failed:" + e, e);
      throw new DotRuntimeException(e.toString());
    }

    return assets;

View Full Code Here

      // Copy permissions
      permissionAPI.copyPermissions(source, newFile);

      //save(newFile);
    } catch (Exception e) {
      throw new DotRuntimeException("An error ocurred trying to copy the file.", e);
    }

    return newFile;
  }
View Full Code Here

        CacheLocator.getNavToolCache().removeNav(ident.getHostId(), ident.getParentPath());
      }

    } catch (IOException e) {
      Logger.error(this, "\n\n\nEXCEPTION IN FILE SAVING!!! " + e.getMessage(), e);
      throw new DotRuntimeException(e.getMessage());
    }

    return workingFile;
  }
View Full Code Here

TOP

Related Classes of com.dotmarketing.exception.DotRuntimeException

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.