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

it.uniroma2.art.coda.exception.parserexception.PrefixNotDefinedException Maven / Gradle / Ivy

There is a newer version: 2.0.2
Show newest version
package it.uniroma2.art.coda.exception.parserexception;

public class PrefixNotDefinedException extends PRParserException {

	private String prefixName;
	private String ruleId;
	
	private static final long serialVersionUID = 1L;

	public PrefixNotDefinedException(String prefixName, String ruleId) {
		super();
		this.prefixName = prefixName;
		this.ruleId = ruleId;
	}

	public PrefixNotDefinedException(Exception e, String prefixName, String ruleId) {
		super(e);
		this.prefixName = prefixName;
		this.ruleId = ruleId;
	}
	
	public String getPrefixName(){
		return prefixName;
	}
	
	public String getRuleId() {
		return ruleId;
	}

	@Override
	public String getErrorAsString() {
		return "prefix "+prefixName+" is used but not defined in rule "+ruleId;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy