Examples of LessException


Examples of com.asual.lesscss.LessException

  @Override
  public String compile(String input, String location, boolean compress) throws LessException {
    try {
      return (String) compile.call(null, input, location, compress);
    } catch (Exception e) {
      throw new LessException(parseLessException(e));
    }
  }
View Full Code Here

Examples of com.asual.lesscss.LessException

        }
      } else {
        type = thrown.getClass().getSimpleName() + " Error";
        message = e.getMessage().replaceFirst("[^:]+: ", "");
      }
      return new LessException(message, type, filename, line, column,
          extractList);
    }
    return root;
  }
View Full Code Here

Examples of com.asual.lesscss.LessException

  public String compile(String input, String location, boolean compress) throws LessException {
    try {
      return (String) Context.call(null, compile, scope, scope,
          new Object[]{input, location, compress});
    } catch (Exception e) {
      throw new LessException(parseLessException(e));
    }
  }
View Full Code Here

Examples of com.asual.lesscss.LessException

            extractList.add(((String) extract.get(i, extract))
                .replace("\t", " "));
          }
        }
      }
      return new LessException(message, type, filename, line, column,
          extractList);
    }
    return root;
  }
View Full Code Here

Examples of com.asual.lesscss.LessException

  public String compile(String input, String location, boolean compress) throws LessException {
    try {
      return call(compile, new Object[]{input, location, compress});
    }
    catch (Exception e){
      throw new LessException(parseLessException(e));
    }
  }
View Full Code Here

Examples of com.asual.lesscss.LessException

            extractList.add(((String) extract.get(i, extract))
                .replace("\t", " "));
          }
        }
      }
      throw new LessException(message, type, filename, line, column,
          extractList);
    }
    throw new LessException(root);
  }
View Full Code Here

Examples of org.lesscss.LessException

    }
    if (!outputFile.delete()) {
      logger.warn("Could not delete temp file: " + outputFile.getAbsolutePath());
    }
    if (exitStatus != 0) {
      throw new LessException(result, null);
    }

    logger.debug("Finished compilation of LESS source in " + (System.currentTimeMillis() - start) + " ms.");

    return result;
View Full Code Here

Examples of org.lesscss.LessException

    }
    if (!outputFile.delete()) {
      logger.warn("Could not delete temp file: " + outputFile.getAbsolutePath());
    }
    if (exitStatus != 0) {
      throw new LessException(result, null);
    }

    logger.debug("Finished compilation of LESS source in " + (System.currentTimeMillis() - start) + " ms.");

    return result;
View Full Code Here

Examples of org.lesscss.LessException

    }
    if (!outputFile.delete()) {
      log.warn("Could not delete temp file: " + outputFile.getAbsolutePath());
    }
    if (exitStatus != 0) {
      throw new LessException(result, null);
    }

    log.debug("Finished compilation of LESS source in " + (System.currentTimeMillis() - start) + " ms.");

    return result;
View Full Code Here

Examples of org.lesscss.LessException

    whenNew(LessSource.class).withArguments(input).thenReturn(lessSource);

    when(output.lastModified()).thenReturn(1l);
    when(lessSource.getLastModifiedIncludingImports()).thenReturn(2l);

    doThrow(new LessException(new Throwable())).when(lessCompiler).compile(lessSource, output, false);

    mojo.execute();

    verify(buildContext).newScanner(same(sourceDirectory), eq(true));
    verify(scanner).setIncludes(same(includes));
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.