HHH-15775 Make UnknownServiceException and NullServiceException extend ServiceException

This commit is contained in:
Mark Rotteveel 2022-11-28 13:47:17 +01:00 committed by Christian Beikov
parent 325b416e7d
commit 7461100c39
2 changed files with 4 additions and 4 deletions

View File

@ -6,12 +6,12 @@
*/ */
package org.hibernate.service; package org.hibernate.service;
import org.hibernate.HibernateException; import org.hibernate.service.spi.ServiceException;
/** /**
* @author Andrea Boriero * @author Andrea Boriero
*/ */
public class NullServiceException extends HibernateException { public class NullServiceException extends ServiceException {
public final Class serviceRole; public final Class serviceRole;
public NullServiceException(Class serviceRole) { public NullServiceException(Class serviceRole) {

View File

@ -5,14 +5,14 @@
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/ */
package org.hibernate.service; package org.hibernate.service;
import org.hibernate.HibernateException; import org.hibernate.service.spi.ServiceException;
/** /**
* Indicates that an unknown service was requested from the registry. * Indicates that an unknown service was requested from the registry.
* *
* @author Steve Ebersole * @author Steve Ebersole
*/ */
public class UnknownServiceException extends HibernateException { public class UnknownServiceException extends ServiceException {
public final Class serviceRole; public final Class serviceRole;
public UnknownServiceException(Class serviceRole) { public UnknownServiceException(Class serviceRole) {