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

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

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

public class MissingMandatoryParamInAnnotationException extends PRParserException {

	private String annName;
	private String ruleId;
	private String paramName;

	private static final long serialVersionUID = 1L;

	public MissingMandatoryParamInAnnotationException(String annName, String ruleId, String paramName) {
		super();
		this.annName = annName;
		this.ruleId = ruleId;
		this.paramName = paramName;
	}

	public MissingMandatoryParamInAnnotationException(Exception e, String prefixName, String ruleId, String paramName) {
		super(e);
		this.annName = prefixName;
		this.ruleId = ruleId;
		this.paramName = paramName;
	}
	
	public String getAnnName(){
		return annName;
	}
	
	public String getRuleId() {
		return ruleId;
	}

	public String getParamName() {
		return paramName;
	}

	@Override
	public String getErrorAsString() {
		return "the mandatory param "+paramName+" in annotation "+ annName +" in rule "+ruleId+" is missing";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy