diff --git a/persistence/src/main/java/com/alibaba/nacos/persistence/dialects/DialectFactory.java b/persistence/src/main/java/com/alibaba/nacos/persistence/dialects/DialectFactory.java index d222ca490fa..bbfb9906cd4 100644 --- a/persistence/src/main/java/com/alibaba/nacos/persistence/dialects/DialectFactory.java +++ b/persistence/src/main/java/com/alibaba/nacos/persistence/dialects/DialectFactory.java @@ -17,7 +17,7 @@ package com.alibaba.nacos.persistence.dialects; import com.alibaba.nacos.persistence.enums.DbTypeEnum; -import com.alibaba.nacos.persistence.exception.DbDialectException; +import com.alibaba.nacos.persistence.exception.DbDialectNotSupportException; import java.util.EnumMap; import java.util.Map; @@ -35,7 +35,7 @@ public static IDialect getDialect(final DbTypeEnum dbType) { IDialect dialect = DIALECT_ENUM_MAP.get(dbType); if (null == dialect) { if (dbType == dbType.OTHER) { - throw new DbDialectException(" DialectFactory database not supported. " + dbType.getDb()); + throw new DbDialectNotSupportException(" DialectFactory database not supported. " + dbType.getDb()); } else if (dbType == dbType.MYSQL) { // mysql same type dialect = new MySqlDialect(); diff --git a/persistence/src/main/java/com/alibaba/nacos/persistence/exception/DbDialectException.java b/persistence/src/main/java/com/alibaba/nacos/persistence/exception/DbDialectNotSupportException.java similarity index 76% rename from persistence/src/main/java/com/alibaba/nacos/persistence/exception/DbDialectException.java rename to persistence/src/main/java/com/alibaba/nacos/persistence/exception/DbDialectNotSupportException.java index b4cf3f207d4..5ba47409150 100644 --- a/persistence/src/main/java/com/alibaba/nacos/persistence/exception/DbDialectException.java +++ b/persistence/src/main/java/com/alibaba/nacos/persistence/exception/DbDialectNotSupportException.java @@ -21,19 +21,19 @@ * * @author hkm */ -public class DbDialectException extends RuntimeException { +public class DbDialectNotSupportException extends RuntimeException { private static final long serialVersionUID = 1L; - public DbDialectException(String message) { + public DbDialectNotSupportException(String message) { super(message); } - public DbDialectException(Throwable throwable) { + public DbDialectNotSupportException(Throwable throwable) { super(throwable); } - public DbDialectException(String message, Throwable throwable) { + public DbDialectNotSupportException(String message, Throwable throwable) { super(message, throwable); } }