/*
 * 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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
 */
package org.hibernate.context;

import org.hibernate.HibernateException;

Indicates that tenant identifiers did not match in cases where CurrentTenantIdentifierResolver.validateExistingCurrentSessions() returns true and there is a mismatch found.
Author:Steve Ebersole
/** * 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.
Params:
  • message – Message explaining the exception condition
/** * Constructs a TenantIdentifierMismatchException. * * @param message Message explaining the exception condition */
public TenantIdentifierMismatchException(String message) { super( message ); }
Constructs a TenantIdentifierMismatchException.
Params:
  • message – Message explaining the exception condition
  • cause – The underlying cause
/** * Constructs a TenantIdentifierMismatchException. * * @param message Message explaining the exception condition * @param cause The underlying cause */
public TenantIdentifierMismatchException(String message, Throwable cause) { super( message, cause ); } }