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

org.hibernate.loader.plan.spi.QuerySpaceUidNotRegisteredException Maven / Gradle / Ivy

There is a newer version: 6.5.0.CR2
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * 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.loader.plan.spi;

import org.hibernate.HibernateException;

/**
 * Indicates an attempt to lookup a QuerySpace by its uid, when no registration has been made under that uid.
 *
 * @author Steve Ebersole
 */
public class QuerySpaceUidNotRegisteredException extends HibernateException {
	public QuerySpaceUidNotRegisteredException(String uid) {
		super( generateMessage( uid ) );
	}

	private static String generateMessage(String uid) {
		return "Given uid [" + uid + "] could not be resolved to a QuerySpace";
	}

	public QuerySpaceUidNotRegisteredException(String uid, Throwable cause) {
		super( generateMessage( uid ), cause );
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy