Skip to content

Commit

Permalink
update Exception Class name
Browse files Browse the repository at this point in the history
  • Loading branch information
huangkemingyyds committed Oct 30, 2023
1 parent db88258 commit 82d4bad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 82d4bad

Please sign in to comment.