HHH-15798 - Clean up uses of NotYetImplementedFor6Exceptions

This commit is contained in:
Steve Ebersole 2022-12-22 13:03:03 -06:00
parent cc0d6eaca7
commit d49518e5e4
2 changed files with 36 additions and 0 deletions

View File

@ -10,6 +10,10 @@ package org.hibernate;
* Marker interface for exceptions that indicate that something hasn't been implemented yet for a certain version
*
* @author Jan Schatteman
*
* @deprecated By definition, something "not yet implemented" is something we are actively seeking to remove
*/
@SuppressWarnings("DeprecatedIsStillUsed")
@Deprecated(forRemoval = true)
public interface NotImplementedYetException {
}

View File

@ -0,0 +1,32 @@
/*
* 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;
import org.hibernate.metamodel.mapping.NonTransientException;
/**
* Thrown from methods added for 6.0 that are not yet implemented.
*
* @deprecated As of 6.2 all uses of this exception have been removed; and it
* is completely used in the Hibernate code
*/
@Internal
@Deprecated(since = "6.2", forRemoval = true)
public class NotYetImplementedFor6Exception extends RuntimeException implements NonTransientException,
NotImplementedYetException {
public NotYetImplementedFor6Exception(String message) {
super( message );
}
public NotYetImplementedFor6Exception(Class clazz) {
super( clazz.getName() );
}
public NotYetImplementedFor6Exception() {
super( "Not yet implemented" );
}
}