From 7461100c39ea8fe2772fbe7827ebc85d115af6f3 Mon Sep 17 00:00:00 2001 From: Mark Rotteveel Date: Mon, 28 Nov 2022 13:47:17 +0100 Subject: [PATCH] HHH-15775 Make UnknownServiceException and NullServiceException extend ServiceException --- .../main/java/org/hibernate/service/NullServiceException.java | 4 ++-- .../java/org/hibernate/service/UnknownServiceException.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/service/NullServiceException.java b/hibernate-core/src/main/java/org/hibernate/service/NullServiceException.java index 9aa3799ee7..9b0429e059 100644 --- a/hibernate-core/src/main/java/org/hibernate/service/NullServiceException.java +++ b/hibernate-core/src/main/java/org/hibernate/service/NullServiceException.java @@ -6,12 +6,12 @@ */ package org.hibernate.service; -import org.hibernate.HibernateException; +import org.hibernate.service.spi.ServiceException; /** * @author Andrea Boriero */ -public class NullServiceException extends HibernateException { +public class NullServiceException extends ServiceException { public final Class serviceRole; public NullServiceException(Class serviceRole) { diff --git a/hibernate-core/src/main/java/org/hibernate/service/UnknownServiceException.java b/hibernate-core/src/main/java/org/hibernate/service/UnknownServiceException.java index 8f3b04677c..160c89d67b 100644 --- a/hibernate-core/src/main/java/org/hibernate/service/UnknownServiceException.java +++ b/hibernate-core/src/main/java/org/hibernate/service/UnknownServiceException.java @@ -5,14 +5,14 @@ * See the lgpl.txt file in the root directory or . */ package org.hibernate.service; -import org.hibernate.HibernateException; +import org.hibernate.service.spi.ServiceException; /** * Indicates that an unknown service was requested from the registry. * * @author Steve Ebersole */ -public class UnknownServiceException extends HibernateException { +public class UnknownServiceException extends ServiceException { public final Class serviceRole; public UnknownServiceException(Class serviceRole) {