org.hibernate.StaleStateException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
The newest version!
/*
* SPDX-License-Identifier: LGPL-2.1-or-later
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate;
/**
* Thrown when a version number or timestamp check failed, indicating that
* the {@link Session} contained stale data (when using long transactions
* with versioning). Also occurs on attempts to delete or update a row that
* does not exist.
*
* @author Gavin King
*/
public class StaleStateException extends HibernateException {
/**
* Constructs a {@code StaleStateException} using the supplied message.
*
* @param message The message explaining the exception condition
*/
public StaleStateException(String message) {
super( message );
}
/**
* Constructs a {@code StaleStateException} using the supplied message
* and cause.
*
* @param message The message explaining the exception condition
* @param cause An exception to wrap
*/
public StaleStateException(String message, Exception cause) {
super( message, cause );
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy