cfml.parsing.reporting.ParseException Maven / Gradle / Ivy
package cfml.parsing.reporting;
import java.io.Serializable;
import org.antlr.v4.runtime.Token;
public class ParseException extends IllegalArgumentException implements Serializable {
private static final long serialVersionUID = 1;
private Token token;
public ParseException(Token _t, String _msg) {
super(_msg);
token = _t;
}
public int getLine() {
return token.getLine();
}
public int getCol() {
return token.getCharPositionInLine();
}
}