Examples of printErrors()


Examples of ch.njol.skript.log.RetainingLogHandler.printErrors()

      final NonNullPair<SkriptEventInfo<?>, SkriptEvent> e = new SkriptParser(event, PARSE_LITERALS, ParseContext.EVENT).parseEvent();
      if (e != null) {
        log.printLog();
        return e;
      }
      log.printErrors(defaultError);
      return null;
    } finally {
      log.stop();
    }
  }
View Full Code Here

Examples of ch.njol.skript.log.RetainingLogHandler.printErrors()

    final RetainingLogHandler log = SkriptLogger.startRetainingLog();
    final Expression<?> v;
    try {
      v = exprs[0].getConvertedExpression(rt.getC());
      if (v == null) {
        log.printErrors("This function is declared to return " + rt.getName().withIndefiniteArticle() + ", but " + exprs[0].toString(null, false) + " is not of that type.");
        return false;
      }
      log.printLog();
    } finally {
      log.stop();
View Full Code Here

Examples of com.github.sommeri.less4j.utils.ProblemsPrinter.printErrors()

    ProblemsPrinter problemsPrinter = new ProblemsPrinter(sourceNamePrinter);

    if (!ex.getErrors().isEmpty())
      standardErr.println("Errors produced by compilation of " + inputfileName);

    String errors = problemsPrinter.printErrors(ex.getErrors());
    standardErr.print(errors);
  }

  protected void reportError(Throwable e) {
    e.printStackTrace(standardErr);
View Full Code Here

Examples of com.github.sommeri.less4j.utils.ProblemsPrinter.printErrors()

   
    StringBuilder builder = new StringBuilder("Could not compile less. ");
    builder.append(errors.size()).append(" error(s) occurred:\n");
   
    List<Problem> visibleErrors = ArraysUtils.safeSublist(errors, 0, SHOW_ERRORS);
    String visibleErrorsStr = problemsPrinter.printErrors(visibleErrors);
    builder.append(visibleErrorsStr);
   
    if (errors.size()>SHOW_ERRORS)
      builder.append("...\n");
   
View Full Code Here

Examples of com.redhat.ceylon.compiler.js.JsCompiler.printErrors()

        }
        System.out.println("Compiling in lexical scope style");
        jsc = new JsCompiler(typeChecker, opts.optimize(false).outRepo("build/test/lexical")).stopOnErrors(false);
        jsc.setResourceFiles(resfiles);
        if (!jsc.generate()) {
            jsc.printErrors(writer);
        }
    }

}
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.printErrors()

    if (xsltc.getJarFileName() != null) xsltc.outputToJar();
                if (_allowExit) System.exit(0);               
      }
      else {
    xsltc.printWarnings();
    xsltc.printErrors();
    if (_allowExit) System.exit(-1);               
      }
  }
  catch (GetOptsException ex) {
      System.err.println(ex);
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.printErrors()

            } catch (TransformerException te) {
                // well, we tried.
            }
        }
        else {
            xsltc.printErrors();
        }
        throw exc;
    }

        return new TemplatesImpl(bytecodes, transletName,
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.printErrors()

                if (xsltc.getJarFileName() != null) xsltc.outputToJar();
                if (_allowExit) System.exit(0);
            }
            else {
                xsltc.printWarnings();
                xsltc.printErrors();
                if (_allowExit) System.exit(-1);
            }
        }
        catch (GetOptsException ex) {
            System.err.println(ex);
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.printErrors()

            } catch (TransformerException te) {
                // well, we tried.
            }   
        }
        else {
            xsltc.printErrors();
        }
        throw exc;
    }

  return new TemplatesImpl(bytecodes, transletName,
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.printErrors()

            } catch (TransformerException te) {
                // well, we tried.
            }
        }
        else {
            xsltc.printErrors();
        }
        throw exc;
    }

        return new TemplatesImpl(bytecodes, transletName,
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.