[core] Rename TokenMgrError to LexException

See #4065
This commit is contained in:
Andreas Dangel
2024-01-11 15:49:21 +01:00
parent 2e7263af69
commit 55d91791c3
27 changed files with 54 additions and 82 deletions

View File

@@ -7,7 +7,7 @@ package net.sourceforge.pmd.lang.groovy.ast.impl.antlr4;
import org.apache.groovy.parser.antlr4.GroovyLexer;
import net.sourceforge.pmd.lang.TokenManager;
import net.sourceforge.pmd.lang.ast.TokenMgrError;
import net.sourceforge.pmd.lang.ast.LexException;
import net.sourceforge.pmd.lang.ast.impl.antlr4.AntlrTokenManager;
import net.sourceforge.pmd.lang.document.TextDocument;
@@ -81,7 +81,7 @@ public class GroovyTokenManager implements TokenManager<GroovyToken> {
final int charPositionInLine,
final String msg,
final RecognitionException ex) {
throw new TokenMgrError(line, charPositionInLine, textDoc.getFileId(), msg, ex);
throw new LexException(line, charPositionInLine, textDoc.getFileId(), msg, ex);
}
}