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

it.uniroma2.art.semanticturkey.changetracking.ChangeTrackerParameterMismatchException Maven / Gradle / Ivy

There is a newer version: 13.1
Show newest version
package it.uniroma2.art.semanticturkey.changetracking;

import org.eclipse.rdf4j.model.IRI;

import it.uniroma2.art.semanticturkey.changetracking.sail.ChangeTracker;

/**
 * Signals a mismatch between the detected version of the {@link ChangeTracker} sail on a connection and the
 * expected one.
 * 
 * @author Manuel Fiorelli
 */
public class ChangeTrackerParameterMismatchException extends Exception {

	private static final long serialVersionUID = 4617757884387260632L;

	private final IRI parameter;
	private final /* @Nullable */ String expectedVersion;
	private final String actualVersion;

	public ChangeTrackerParameterMismatchException(IRI parameter, /* @Nullable */ String expectedVersion,
			String actualVersion) {
		super("Expected value \'" + expectedVersion + "\' for parameter \'" + parameter + "\' but detected \'"
				+ actualVersion + "\'");
		this.parameter = parameter;
		this.expectedVersion = expectedVersion;
		this.actualVersion = actualVersion;
	}

	public String getActualVersion() {
		return actualVersion;
	}

	public /* @Nullable */ String getExpectedVersion() {
		return expectedVersion;
	}

	public IRI getParameter() {
		return parameter;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy