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

org.hibernate.context.TenantIdentifierMismatchException Maven / Gradle / Ivy

There is a newer version: 6.6.2.Final
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.context;

import org.hibernate.HibernateException;

/**
 * Indicates that tenant identifiers did not match in cases where
 * {@link org.hibernate.context.spi.CurrentTenantIdentifierResolver#validateExistingCurrentSessions()}
 * returns {@code true} and there is a mismatch found.
 *
 * @author Steve Ebersole
 */
public class TenantIdentifierMismatchException extends HibernateException{
	/**
	 * Constructs a TenantIdentifierMismatchException.
	 *
	 * @param message Message explaining the exception condition
	 */
	public TenantIdentifierMismatchException(String message) {
		super( message );
	}

	/**
	 * Constructs a TenantIdentifierMismatchException.
	 *
	 * @param message Message explaining the exception condition
	 * @param cause The underlying cause
	 */
	public TenantIdentifierMismatchException(String message, Throwable cause) {
		super( message, cause );
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy