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

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

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

public class ConfidenceNotDoubleNumException extends PRParserException {

	private String ruleId;
	private String value;
	private String wrongType;

	private static final long serialVersionUID = 1L;

	public ConfidenceNotDoubleNumException(String ruleId, String value, String wrongType) {
		super();
		this.ruleId = ruleId;
		this.value = value;
		this.wrongType = wrongType;
	}

	public ConfidenceNotDoubleNumException(Exception e, String ruleId, String value, String wrongType) {
		super(e);
		this.ruleId = ruleId;
		this.value = value;
		this.wrongType = wrongType;
	}
	
	public String getValue(){
		return value;
	}
	
	public String getRuleId() {
		return ruleId;
	}

	public String getWrongType() {
		return wrongType;
	}

	@Override
	public String getErrorAsString() {
		return "the confidence value  "+value+" in rule "+ruleId+" cannot be converted into a decimal number, having type "+wrongType;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy