Package com.comphenix.protocol.error

Examples of com.comphenix.protocol.error.DelegatedErrorReporter


  /**
   * Retrieve a error reporter that may be filtered by the configuration.
   * @return The new default error reporter.
   */
  private ErrorReporter getFilteredReporter(ErrorReporter reporter) {
    return new DelegatedErrorReporter(reporter) {     
      private int lastModCount = -1;
      private Set<String> reports = Sets.newHashSet();
     
      @Override
      protected Report filterReport(Object sender, Report report, boolean detailed) {
View Full Code Here


   * Return a delegated error reporter that ignores certain warnings that are irrelevant on Spigot.
   * @param reporter - error reporter to delegate.
   * @return The filtered error reporter.
   */
  private ErrorReporter filterImpossibleWarnings(ErrorReporter reporter) {
    return new DelegatedErrorReporter(reporter) {
      @Override
      protected Report filterReport(Object sender, Report report, boolean detailed) {
        // This doesn't matter - ignore it
        if (report.getType() == NetworkObjectInjector.REPORT_DETECTED_CUSTOM_SERVER_HANDLER)
          return null;
View Full Code Here

TOP

Related Classes of com.comphenix.protocol.error.DelegatedErrorReporter

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.