All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cfml.parsing.reporting.ParseException Maven / Gradle / Ivy

There is a newer version: 2.11.0
Show newest version
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();
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy