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

org.hibernate.search.elasticsearch.util.impl.ParentPathMismatchException Maven / Gradle / Ivy

There is a newer version: 5.11.12.Final
Show newest version
/*
 * Hibernate Search, full-text search for your domain model
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.search.elasticsearch.util.impl;


/**
 * @author Yoann Rodiere
 */
public class ParentPathMismatchException extends Exception {

	private final String expectedParentPath;
	private final String mismatchingPath;

	public ParentPathMismatchException(String expectedParentPath, String mismatchingPath) {
		this.expectedParentPath = expectedParentPath;
		this.mismatchingPath = mismatchingPath;
	}

	@Override
	public String getMessage() {
		return "The path '" + mismatchingPath + "' is not contained within '" + expectedParentPath + "'" ;
	}

	public String getExpectedParentPath() {
		return expectedParentPath;
	}

	public String getMismatchingPath() {
		return mismatchingPath;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy