Examples of ErrorReporter


Examples of com.comphenix.protocol.error.ErrorReporter

  /**
   * Retrieve the default instance of the Bukkit unwrapper.
   * @return The default instance.
   */
  public static BukkitUnwrapper getInstance() {
    ErrorReporter currentReporter = ProtocolLibrary.getErrorReporter();
   
    // Also recreate the unwrapper if the error reporter has changed
    if (DEFAULT == null || DEFAULT.reporter != currentReporter) {
      DEFAULT = new BukkitUnwrapper(currentReporter);
    }
View Full Code Here

Examples of com.comphenix.protocol.error.ErrorReporter

  /**
   * Retrieve the current class source.
   * @return The class source.
   */
  private static ClassSource getClassSource() {
    ErrorReporter reporter = ProtocolLibrary.getErrorReporter();
   
    // Lazy pattern again
    if (classSource == null) {
      // Attempt to use MCPC
      try {
        return classSource = new RemappedClassSource().initialize();
      } catch (RemapperUnavaibleException e) {
        if (e.getReason() != Reason.MCPC_NOT_PRESENT)
          reporter.reportWarning(MinecraftReflection.class, Report.newBuilder(REPORT_CANNOT_FIND_MCPC_REMAPPER));
      } catch (Exception e) {
        reporter.reportWarning(MinecraftReflection.class, Report.newBuilder(REPORT_CANNOT_LOAD_CPC_REMAPPER));
      }
     
      // Just use the default class loader
      classSource = ClassSource.fromClassLoader();
    }
View Full Code Here

Examples of com.google.dart.engine.internal.error.ErrorReporter

  @Override
  protected void internalPerform() throws AnalysisException {
    TimeCounterHandle timeCounter = PerformanceStatistics.errors.start();
    try {
      RecordingErrorListener errorListener = new RecordingErrorListener();
      ErrorReporter errorReporter = new ErrorReporter(errorListener, source);
      TypeProvider typeProvider = getContext().getTypeProvider();
      //
      // Validate the directives
      //
      validateDirectives(getContext(), source, unit, errorListener);
View Full Code Here

Examples of com.google.gwt.dev.js.rhino.ErrorReporter

  }

  List<JsStatement> parseImpl(SourceInfo rootSourceInfo, JsScope scope, Reader r)
      throws JsParserException, IOException {
    // Create a custom error handler so that we can throw our own exceptions.
    Context.enter().setErrorReporter(new ErrorReporter() {
      public void error(String msg, String loc, int ln, String src, int col) {
        throw new UncheckedJsParserException(new JsParserException(msg, ln,
            src, col));
      }
View Full Code Here

Examples of com.google.gwt.dev.js.rhino.ErrorReporter

  private final Stack<JsScope> scopeStack = new Stack<JsScope>();

  public JsParser() {
    // Create a custom error handler so that we can throw our own exceptions.
    //
    Context.enter().setErrorReporter(new ErrorReporter() {
      public void error(String msg, String loc, int ln, String src, int col) {
        throw new UncheckedJsParserException(new JsParserException(msg, ln,
            src, col));
      }
View Full Code Here

Examples of com.google.javascript.rhino.ErrorReporter

  }

  /** @return The resolved type */
  public static JSType assertValidResolve(
      JSType type, StaticScope<JSType> scope) {
    ErrorReporter t = TestErrorReporter.forNoExpectedReports();
    JSType resolvedType = type.resolve(t, scope);
    assertTypeEquals("JSType#resolve should not affect object equality",
        type, resolvedType);
    return resolvedType;
  }
View Full Code Here

Examples of com.volantis.mcs.xml.validation.ErrorReporter

        };

        final BooleanObject erBO = new BooleanObject();
        bo.setValue(false);

        ErrorReporter er = new ErrorReporter() {

            // javadoc inherited
            public void reportError(ErrorDetails details) {
                // ensure the supplementary validator has not been invoked
                assertTrue("Supplementary validator should be executed " +
View Full Code Here

Examples of com.volantis.mcs.xml.validation.ErrorReporter

     * Factory method that factors a {@link SAXValidator} instance.
     *
     * @return a <code>SAXValidator</code> instance
     */
    protected SAXValidator createSAXValidator() {
        ErrorReporter passthroughErrorReporter = new ErrorReporter() {
            public void reportError(ErrorDetails details) {
                String key = details.getKey();

                if (key == null) {
                    Attributes attributes = details.getAttributes();
View Full Code Here

Examples of liveplugin.pluginrunner.ErrorReporter

            PluginRunner.IDE_STARTUP,
            new Presentation(),
            ActionManager.getInstance(),
            0
        );
        final ErrorReporter errorReporter = new ErrorReporter();
        RunPluginAction.runPlugins(pluginIdToPathMap().keySet(), event, errorReporter, RunPluginAction.createPluginRunners(errorReporter));
      }
    });
  }
View Full Code Here

Examples of net.sf.lapg.gen.options.OptdefLexer.ErrorReporter

  }


  public static OptdefTree<Object> parse(TextSource source) {
    final List<OptdefProblem> list = new ArrayList<OptdefProblem>();
    ErrorReporter reporter = new ErrorReporter() {
      public void error(int start, int end, int line, String s) {
        list.add(new OptdefProblem(KIND_ERROR, start, end, s, null));
      }
    };
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.