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

org.cssless.css.parsing.SyntaxException Maven / Gradle / Ivy

package org.cssless.css.parsing;

/**
 * Represents compilation error related to a specific point in the source file
 */
@SuppressWarnings("serial")
public class SyntaxException extends IllegalArgumentException {

	private final int index;
	private final int line;
	private final int column;

	public SyntaxException(String message, int index, int line, int column) {
		super(message);

		this.index = index;
		this.line = line;
		this.column = column;
	}

	public SyntaxException(String message, int index, int line, int column, Throwable cause) {
		super(message, cause);

		this.index = index;
		this.line = line;
		this.column = column;
	}

	public int getIndex() {
		return this.index;
	}
	public int getLine() {
		return this.line;
	}
	public int getColumn() {
		return this.column;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy