void clearErrors(int failPos, int errorCount) { if (this.failPos == failPos) { this.errorCount = errorCount; } else if (this.failPos > failPos) { this.errorCount = 0; } }