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) {