This is an automated email from the ASF dual-hosted git repository.

zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new ee85debafcd Rename SQLDialectException (#20151)
ee85debafcd is described below

commit ee85debafcd31df31ff4c39bc2d830f0c326e270
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Aug 13 20:30:06 2022 +0800

    Rename SQLDialectException (#20151)
---
 .../shardingsphere/error/SQLExceptionHandler.java  |  8 ++--
 ...nMapper.java => SQLDialectExceptionMapper.java} | 12 +++---
 ....java => SQLDialectExceptionMapperFactory.java} | 10 ++---
 ...apper.java => MySQLDialectExceptionMapper.java} | 46 +++++++++++-----------
 ...gsphere.error.mapper.SQLDialectExceptionMapper} |  2 +-
 ....java => PostgreSQLDialectExceptionMapper.java} | 28 ++++++-------
 ...gsphere.error.mapper.SQLDialectExceptionMapper} |  2 +-
 .../exception/dialect/DBCreateExistsException.java |  4 +-
 .../dialect/DBDropNotExistsException.java          |  4 +-
 .../exception/dialect/InTransactionException.java  |  4 +-
 .../InsertColumnsAndValuesMismatchedException.java |  4 +-
 .../dialect/InvalidParameterValueException.java    |  4 +-
 .../dialect/NoDatabaseSelectedException.java       |  4 +-
 .../exception/dialect/NoSuchTableException.java    |  4 +-
 .../exception/dialect/TableExistsException.java    |  4 +-
 .../dialect/TableModifyInTransactionException.java |  4 +-
 .../dialect/TooManyConnectionsException.java       |  4 +-
 .../dialect/UnknownDatabaseException.java          |  4 +-
 ...tSQLException.java => SQLDialectException.java} |  4 +-
 19 files changed, 78 insertions(+), 78 deletions(-)

diff --git 
a/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/SQLExceptionHandler.java
 
b/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/SQLExceptionHandler.java
index 9567879b4dc..a367ea6f648 100644
--- 
a/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/SQLExceptionHandler.java
+++ 
b/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/SQLExceptionHandler.java
@@ -21,7 +21,7 @@ import lombok.AccessLevel;
 import lombok.NoArgsConstructor;
 import org.apache.shardingsphere.error.vendor.VendorError;
 import org.apache.shardingsphere.error.vendor.ShardingSphereVendorError;
-import org.apache.shardingsphere.error.mapper.DialectSQLExceptionMapperFactory;
+import org.apache.shardingsphere.error.mapper.SQLDialectExceptionMapperFactory;
 import 
org.apache.shardingsphere.infra.config.exception.ShardingSphereConfigurationException;
 import org.apache.shardingsphere.infra.exception.CircuitBreakException;
 import org.apache.shardingsphere.infra.exception.ResourceNotExistedException;
@@ -29,7 +29,7 @@ import 
org.apache.shardingsphere.infra.exception.RuleNotExistedException;
 import org.apache.shardingsphere.infra.exception.TableLockWaitTimeoutException;
 import org.apache.shardingsphere.infra.exception.TableLockedException;
 import org.apache.shardingsphere.infra.exception.UnsupportedCommandException;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 import 
org.apache.shardingsphere.infra.util.exception.inside.ShardingSphereInsideException;
 import org.apache.shardingsphere.sql.parser.exception.SQLParsingException;
 
@@ -50,8 +50,8 @@ public final class SQLExceptionHandler {
      * @return SQL exception
      */
     public static SQLException convert(final String databaseType, final 
ShardingSphereInsideException insideException) {
-        if (insideException instanceof InsideDialectSQLException) {
-            return 
DialectSQLExceptionMapperFactory.getInstance(databaseType).convert((InsideDialectSQLException)
 insideException);
+        if (insideException instanceof SQLDialectException) {
+            return 
SQLDialectExceptionMapperFactory.getInstance(databaseType).convert((SQLDialectException)
 insideException);
         }
         return convert(insideException).orElseGet(() -> 
toSQLException(ShardingSphereVendorError.UNKNOWN_EXCEPTION, 
insideException.getMessage()));
     }
diff --git 
a/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/DialectSQLExceptionMapper.java
 
b/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/SQLDialectExceptionMapper.java
similarity index 75%
rename from 
shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/DialectSQLExceptionMapper.java
rename to 
shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/SQLDialectExceptionMapper.java
index 0f170e9f424..b6bf185bcb4 100644
--- 
a/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/DialectSQLExceptionMapper.java
+++ 
b/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/SQLDialectExceptionMapper.java
@@ -17,23 +17,23 @@
 
 package org.apache.shardingsphere.error.mapper;
 
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 import org.apache.shardingsphere.infra.util.spi.annotation.SingletonSPI;
 import org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI;
 
 import java.sql.SQLException;
 
 /**
- * Dialect SQL exception mapper.
+ * SQL dialect exception mapper.
  */
 @SingletonSPI
-public interface DialectSQLExceptionMapper extends TypedSPI {
+public interface SQLDialectExceptionMapper extends TypedSPI {
     
     /**
-     * Convert dialect SQL exception into SQL exception.
+     * Convert SQL dialect exception into SQL exception.
      * 
-     * @param dialectSQLException dialect SQL exception
+     * @param sqlDialectException SQL dialect exception
      * @return SQLException
      */
-    SQLException convert(InsideDialectSQLException dialectSQLException);
+    SQLException convert(SQLDialectException sqlDialectException);
 }
diff --git 
a/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/DialectSQLExceptionMapperFactory.java
 
b/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/SQLDialectExceptionMapperFactory.java
similarity index 82%
rename from 
shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/DialectSQLExceptionMapperFactory.java
rename to 
shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/SQLDialectExceptionMapperFactory.java
index 14788a8528b..534084320e1 100644
--- 
a/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/DialectSQLExceptionMapperFactory.java
+++ 
b/shardingsphere-error/shardingsphere-common-error/src/main/java/org/apache/shardingsphere/error/mapper/SQLDialectExceptionMapperFactory.java
@@ -23,13 +23,13 @@ import 
org.apache.shardingsphere.infra.util.spi.ShardingSphereServiceLoader;
 import org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPIRegistry;
 
 /**
- * Dialect SQL exception mapper.
+ * SQL dialect exception mapper factory.
  */
 @NoArgsConstructor(access = AccessLevel.PRIVATE)
-public final class DialectSQLExceptionMapperFactory {
+public final class SQLDialectExceptionMapperFactory {
     
     static {
-        ShardingSphereServiceLoader.register(DialectSQLExceptionMapper.class);
+        ShardingSphereServiceLoader.register(SQLDialectExceptionMapper.class);
     }
     
     /**
@@ -38,7 +38,7 @@ public final class DialectSQLExceptionMapperFactory {
      * @param databaseType database type
      * @return SQLException
      */
-    public static DialectSQLExceptionMapper getInstance(final String 
databaseType) {
-        return 
TypedSPIRegistry.getRegisteredService(DialectSQLExceptionMapper.class, 
databaseType);
+    public static SQLDialectExceptionMapper getInstance(final String 
databaseType) {
+        return 
TypedSPIRegistry.getRegisteredService(SQLDialectExceptionMapper.class, 
databaseType);
     }
 }
diff --git 
a/shardingsphere-error/shardingsphere-mysql-error/src/main/java/org/apache/shardingsphere/error/mysql/mapper/MySQLExceptionMapper.java
 
b/shardingsphere-error/shardingsphere-mysql-error/src/main/java/org/apache/shardingsphere/error/mysql/mapper/MySQLDialectExceptionMapper.java
similarity index 68%
rename from 
shardingsphere-error/shardingsphere-mysql-error/src/main/java/org/apache/shardingsphere/error/mysql/mapper/MySQLExceptionMapper.java
rename to 
shardingsphere-error/shardingsphere-mysql-error/src/main/java/org/apache/shardingsphere/error/mysql/mapper/MySQLDialectExceptionMapper.java
index d5b99faa5bb..cc22a300975 100644
--- 
a/shardingsphere-error/shardingsphere-mysql-error/src/main/java/org/apache/shardingsphere/error/mysql/mapper/MySQLExceptionMapper.java
+++ 
b/shardingsphere-error/shardingsphere-mysql-error/src/main/java/org/apache/shardingsphere/error/mysql/mapper/MySQLDialectExceptionMapper.java
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.error.mysql.mapper;
 
 import org.apache.shardingsphere.error.vendor.VendorError;
 import org.apache.shardingsphere.error.vendor.ShardingSphereVendorError;
-import org.apache.shardingsphere.error.mapper.DialectSQLExceptionMapper;
+import org.apache.shardingsphere.error.mapper.SQLDialectExceptionMapper;
 import org.apache.shardingsphere.error.mysql.code.MySQLVendorError;
 import 
org.apache.shardingsphere.infra.exception.dialect.DBCreateExistsException;
 import 
org.apache.shardingsphere.infra.exception.dialect.DBDropNotExistsException;
@@ -30,47 +30,47 @@ import 
org.apache.shardingsphere.infra.exception.dialect.TableExistsException;
 import 
org.apache.shardingsphere.infra.exception.dialect.TableModifyInTransactionException;
 import 
org.apache.shardingsphere.infra.exception.dialect.TooManyConnectionsException;
 import 
org.apache.shardingsphere.infra.exception.dialect.UnknownDatabaseException;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 import java.sql.SQLException;
 
 /**
- * MySQL exception mapper.
+ * MySQL dialect exception mapper.
  */
-public final class MySQLExceptionMapper implements DialectSQLExceptionMapper {
+public final class MySQLDialectExceptionMapper implements 
SQLDialectExceptionMapper {
     
     @Override
-    public SQLException convert(final InsideDialectSQLException 
dialectSQLException) {
-        if (dialectSQLException instanceof TableModifyInTransactionException) {
-            return 
toSQLException(MySQLVendorError.ER_ERROR_ON_MODIFYING_GTID_EXECUTED_TABLE, 
((TableModifyInTransactionException) dialectSQLException).getTableName());
+    public SQLException convert(final SQLDialectException sqlDialectException) 
{
+        if (sqlDialectException instanceof TableModifyInTransactionException) {
+            return 
toSQLException(MySQLVendorError.ER_ERROR_ON_MODIFYING_GTID_EXECUTED_TABLE, 
((TableModifyInTransactionException) sqlDialectException).getTableName());
         }
-        if (dialectSQLException instanceof 
InsertColumnsAndValuesMismatchedException) {
-            return 
toSQLException(MySQLVendorError.ER_WRONG_VALUE_COUNT_ON_ROW, 
((InsertColumnsAndValuesMismatchedException) 
dialectSQLException).getMismatchedRowNumber());
+        if (sqlDialectException instanceof 
InsertColumnsAndValuesMismatchedException) {
+            return 
toSQLException(MySQLVendorError.ER_WRONG_VALUE_COUNT_ON_ROW, 
((InsertColumnsAndValuesMismatchedException) 
sqlDialectException).getMismatchedRowNumber());
         }
-        if (dialectSQLException instanceof UnknownDatabaseException) {
-            return null != ((UnknownDatabaseException) 
dialectSQLException).getDatabaseName()
-                    ? toSQLException(MySQLVendorError.ER_BAD_DB_ERROR, 
((UnknownDatabaseException) dialectSQLException).getDatabaseName())
+        if (sqlDialectException instanceof UnknownDatabaseException) {
+            return null != ((UnknownDatabaseException) 
sqlDialectException).getDatabaseName()
+                    ? toSQLException(MySQLVendorError.ER_BAD_DB_ERROR, 
((UnknownDatabaseException) sqlDialectException).getDatabaseName())
                     : toSQLException(MySQLVendorError.ER_NO_DB_ERROR);
         }
-        if (dialectSQLException instanceof NoDatabaseSelectedException) {
+        if (sqlDialectException instanceof NoDatabaseSelectedException) {
             return toSQLException(MySQLVendorError.ER_NO_DB_ERROR);
         }
-        if (dialectSQLException instanceof DBCreateExistsException) {
-            return toSQLException(MySQLVendorError.ER_DB_CREATE_EXISTS_ERROR, 
((DBCreateExistsException) dialectSQLException).getDatabaseName());
+        if (sqlDialectException instanceof DBCreateExistsException) {
+            return toSQLException(MySQLVendorError.ER_DB_CREATE_EXISTS_ERROR, 
((DBCreateExistsException) sqlDialectException).getDatabaseName());
         }
-        if (dialectSQLException instanceof DBDropNotExistsException) {
-            return 
toSQLException(MySQLVendorError.ER_DB_DROP_NOT_EXISTS_ERROR, 
((DBDropNotExistsException) dialectSQLException).getDatabaseName());
+        if (sqlDialectException instanceof DBDropNotExistsException) {
+            return 
toSQLException(MySQLVendorError.ER_DB_DROP_NOT_EXISTS_ERROR, 
((DBDropNotExistsException) sqlDialectException).getDatabaseName());
         }
-        if (dialectSQLException instanceof TableExistsException) {
-            return toSQLException(MySQLVendorError.ER_TABLE_EXISTS_ERROR, 
((TableExistsException) dialectSQLException).getTableName());
+        if (sqlDialectException instanceof TableExistsException) {
+            return toSQLException(MySQLVendorError.ER_TABLE_EXISTS_ERROR, 
((TableExistsException) sqlDialectException).getTableName());
         }
-        if (dialectSQLException instanceof NoSuchTableException) {
-            return toSQLException(MySQLVendorError.ER_NO_SUCH_TABLE, 
((NoSuchTableException) dialectSQLException).getTableName());
+        if (sqlDialectException instanceof NoSuchTableException) {
+            return toSQLException(MySQLVendorError.ER_NO_SUCH_TABLE, 
((NoSuchTableException) sqlDialectException).getTableName());
         }
-        if (dialectSQLException instanceof TooManyConnectionsException) {
+        if (sqlDialectException instanceof TooManyConnectionsException) {
             return toSQLException(MySQLVendorError.ER_CON_COUNT_ERROR);
         }
-        return toSQLException(ShardingSphereVendorError.UNKNOWN_EXCEPTION, 
dialectSQLException.getMessage());
+        return toSQLException(ShardingSphereVendorError.UNKNOWN_EXCEPTION, 
sqlDialectException.getMessage());
     }
     
     private SQLException toSQLException(final VendorError vendorError, final 
Object... messageArguments) {
diff --git 
a/shardingsphere-error/shardingsphere-mysql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.DialectSQLExceptionMapper
 
b/shardingsphere-error/shardingsphere-mysql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.SQLDialectExceptionMapper
similarity index 91%
rename from 
shardingsphere-error/shardingsphere-mysql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.DialectSQLExceptionMapper
rename to 
shardingsphere-error/shardingsphere-mysql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.SQLDialectExceptionMapper
index da590455cf7..4dda102fbfe 100644
--- 
a/shardingsphere-error/shardingsphere-mysql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.DialectSQLExceptionMapper
+++ 
b/shardingsphere-error/shardingsphere-mysql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.SQLDialectExceptionMapper
@@ -15,4 +15,4 @@
 # limitations under the License.
 #
 
-org.apache.shardingsphere.error.mysql.mapper.MySQLExceptionMapper
+org.apache.shardingsphere.error.mysql.mapper.MySQLDialectExceptionMapper
diff --git 
a/shardingsphere-error/shardingsphere-postgresql-error/src/main/java/org/apache/shardingsphere/error/postgresql/mapper/PostgreSQLExceptionMapper.java
 
b/shardingsphere-error/shardingsphere-postgresql-error/src/main/java/org/apache/shardingsphere/error/postgresql/mapper/PostgreSQLDialectExceptionMapper.java
similarity index 71%
rename from 
shardingsphere-error/shardingsphere-postgresql-error/src/main/java/org/apache/shardingsphere/error/postgresql/mapper/PostgreSQLExceptionMapper.java
rename to 
shardingsphere-error/shardingsphere-postgresql-error/src/main/java/org/apache/shardingsphere/error/postgresql/mapper/PostgreSQLDialectExceptionMapper.java
index 17c671f555b..57a5e7cc088 100644
--- 
a/shardingsphere-error/shardingsphere-postgresql-error/src/main/java/org/apache/shardingsphere/error/postgresql/mapper/PostgreSQLExceptionMapper.java
+++ 
b/shardingsphere-error/shardingsphere-postgresql-error/src/main/java/org/apache/shardingsphere/error/postgresql/mapper/PostgreSQLDialectExceptionMapper.java
@@ -17,44 +17,44 @@
 
 package org.apache.shardingsphere.error.postgresql.mapper;
 
-import org.apache.shardingsphere.error.mapper.DialectSQLExceptionMapper;
+import org.apache.shardingsphere.error.mapper.SQLDialectExceptionMapper;
 import org.apache.shardingsphere.error.postgresql.code.PostgreSQLVendorError;
 import 
org.apache.shardingsphere.infra.exception.dialect.DBCreateExistsException;
 import 
org.apache.shardingsphere.infra.exception.dialect.InTransactionException;
 import 
org.apache.shardingsphere.infra.exception.dialect.InsertColumnsAndValuesMismatchedException;
 import 
org.apache.shardingsphere.infra.exception.dialect.InvalidParameterValueException;
 import 
org.apache.shardingsphere.infra.exception.dialect.TooManyConnectionsException;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 import org.postgresql.util.PSQLException;
 import org.postgresql.util.PSQLState;
 
 import java.sql.SQLException;
 
 /**
- * PostgreSQL exception mapper.
+ * PostgreSQL dialect exception mapper.
  */
-public final class PostgreSQLExceptionMapper implements 
DialectSQLExceptionMapper {
+public final class PostgreSQLDialectExceptionMapper implements 
SQLDialectExceptionMapper {
     
     @Override
-    public SQLException convert(final InsideDialectSQLException 
dialectSQLException) {
-        if (dialectSQLException instanceof InTransactionException) {
-            return new PSQLException(dialectSQLException.getMessage(), 
PSQLState.TRANSACTION_STATE_INVALID);
+    public SQLException convert(final SQLDialectException sqlDialectException) 
{
+        if (sqlDialectException instanceof InTransactionException) {
+            return new PSQLException(sqlDialectException.getMessage(), 
PSQLState.TRANSACTION_STATE_INVALID);
         }
-        if (dialectSQLException instanceof 
InsertColumnsAndValuesMismatchedException) {
-            return new PSQLException(dialectSQLException.getMessage(), 
PSQLState.SYNTAX_ERROR);
+        if (sqlDialectException instanceof 
InsertColumnsAndValuesMismatchedException) {
+            return new PSQLException(sqlDialectException.getMessage(), 
PSQLState.SYNTAX_ERROR);
         }
-        if (dialectSQLException instanceof InvalidParameterValueException) {
-            InvalidParameterValueException invalidParameterValueException = 
(InvalidParameterValueException) dialectSQLException;
+        if (sqlDialectException instanceof InvalidParameterValueException) {
+            InvalidParameterValueException invalidParameterValueException = 
(InvalidParameterValueException) sqlDialectException;
             String message = String.format("invalid value for parameter 
\"%s\": \"%s\"", invalidParameterValueException.getParameterName(), 
invalidParameterValueException.getParameterValue());
             return new PSQLException(message, 
PSQLState.INVALID_PARAMETER_VALUE);
         }
-        if (dialectSQLException instanceof DBCreateExistsException) {
+        if (sqlDialectException instanceof DBCreateExistsException) {
             return new 
PSQLException(PostgreSQLVendorError.DUPLICATE_DATABASE.getReason(), null);
         }
-        if (dialectSQLException instanceof TooManyConnectionsException) {
+        if (sqlDialectException instanceof TooManyConnectionsException) {
             return new 
PSQLException(PostgreSQLVendorError.TOO_MANY_CONNECTIONS.getReason(), null);
         }
-        return new PSQLException(dialectSQLException.getMessage(), null);
+        return new PSQLException(sqlDialectException.getMessage(), null);
     }
     
     @Override
diff --git 
a/shardingsphere-error/shardingsphere-postgresql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.DialectSQLExceptionMapper
 
b/shardingsphere-error/shardingsphere-postgresql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.SQLDialectExceptionMapper
similarity index 90%
rename from 
shardingsphere-error/shardingsphere-postgresql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.DialectSQLExceptionMapper
rename to 
shardingsphere-error/shardingsphere-postgresql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.SQLDialectExceptionMapper
index 2d4b5c730bd..d2e4ddb1748 100644
--- 
a/shardingsphere-error/shardingsphere-postgresql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.DialectSQLExceptionMapper
+++ 
b/shardingsphere-error/shardingsphere-postgresql-error/src/main/resources/META-INF/services/org.apache.shardingsphere.error.mapper.SQLDialectExceptionMapper
@@ -15,4 +15,4 @@
 # limitations under the License.
 #
 
-org.apache.shardingsphere.error.postgresql.mapper.PostgreSQLExceptionMapper
+org.apache.shardingsphere.error.postgresql.mapper.PostgreSQLDialectExceptionMapper
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/DBCreateExistsException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/DBCreateExistsException.java
index c0de1e693fb..5c7f55fbabd 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/DBCreateExistsException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/DBCreateExistsException.java
@@ -19,14 +19,14 @@ package org.apache.shardingsphere.infra.exception.dialect;
 
 import lombok.Getter;
 import lombok.RequiredArgsConstructor;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 /**
  * DB create exists exception.
  */
 @RequiredArgsConstructor
 @Getter
-public final class DBCreateExistsException extends InsideDialectSQLException {
+public final class DBCreateExistsException extends SQLDialectException {
     
     private static final long serialVersionUID = 779787160167652641L;
     
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/DBDropNotExistsException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/DBDropNotExistsException.java
index 52de75dfcc5..60d66a80dd3 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/DBDropNotExistsException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/DBDropNotExistsException.java
@@ -19,14 +19,14 @@ package org.apache.shardingsphere.infra.exception.dialect;
 
 import lombok.Getter;
 import lombok.RequiredArgsConstructor;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 /**
  * DB drop exists exception.
  */
 @RequiredArgsConstructor
 @Getter
-public final class DBDropNotExistsException extends InsideDialectSQLException {
+public final class DBDropNotExistsException extends SQLDialectException {
     
     private static final long serialVersionUID = 6088272565526510361L;
     
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InTransactionException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InTransactionException.java
index f745ea26040..91ad813437d 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InTransactionException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InTransactionException.java
@@ -19,14 +19,14 @@ package org.apache.shardingsphere.infra.exception.dialect;
 
 import lombok.Getter;
 import lombok.RequiredArgsConstructor;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 /**
  * In transaction exception.
  */
 @RequiredArgsConstructor
 @Getter
-public final class InTransactionException extends InsideDialectSQLException {
+public final class InTransactionException extends SQLDialectException {
     
     private static final long serialVersionUID = 8125852172126111520L;
     
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InsertColumnsAndValuesMismatchedException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InsertColumnsAndValuesMismatchedException.java
index 9b058e1c42e..d440ce16db2 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InsertColumnsAndValuesMismatchedException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InsertColumnsAndValuesMismatchedException.java
@@ -19,14 +19,14 @@ package org.apache.shardingsphere.infra.exception.dialect;
 
 import lombok.Getter;
 import lombok.RequiredArgsConstructor;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 /**
  * Insert columns and values mismatched exception.
  */
 @RequiredArgsConstructor
 @Getter
-public final class InsertColumnsAndValuesMismatchedException extends 
InsideDialectSQLException {
+public final class InsertColumnsAndValuesMismatchedException extends 
SQLDialectException {
     
     private static final long serialVersionUID = 5676889868213244575L;
     
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InvalidParameterValueException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InvalidParameterValueException.java
index 7b108b87fb3..002a00b9132 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InvalidParameterValueException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/InvalidParameterValueException.java
@@ -19,14 +19,14 @@ package org.apache.shardingsphere.infra.exception.dialect;
 
 import lombok.Getter;
 import lombok.RequiredArgsConstructor;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 /**
  * Invalid parameter value exception.
  */
 @RequiredArgsConstructor
 @Getter
-public final class InvalidParameterValueException extends 
InsideDialectSQLException {
+public final class InvalidParameterValueException extends SQLDialectException {
     
     private static final long serialVersionUID = -6561119208409452172L;
     
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/NoDatabaseSelectedException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/NoDatabaseSelectedException.java
index 7ed6c137ec7..22816603dec 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/NoDatabaseSelectedException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/NoDatabaseSelectedException.java
@@ -17,12 +17,12 @@
 
 package org.apache.shardingsphere.infra.exception.dialect;
 
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 /**
  * No database selected exception.
  */
-public final class NoDatabaseSelectedException extends 
InsideDialectSQLException {
+public final class NoDatabaseSelectedException extends SQLDialectException {
     
     private static final long serialVersionUID = 7820981156141678308L;
 }
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/NoSuchTableException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/NoSuchTableException.java
index fd1df55e31b..b2361599d11 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/NoSuchTableException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/NoSuchTableException.java
@@ -19,14 +19,14 @@ package org.apache.shardingsphere.infra.exception.dialect;
 
 import lombok.Getter;
 import lombok.RequiredArgsConstructor;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 /**
  * No such table exception.
  */
 @RequiredArgsConstructor
 @Getter
-public final class NoSuchTableException extends InsideDialectSQLException {
+public final class NoSuchTableException extends SQLDialectException {
     
     private static final long serialVersionUID = 8311953084941769743L;
     
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TableExistsException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TableExistsException.java
index 8a5ba94fbd1..4d3d771a190 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TableExistsException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TableExistsException.java
@@ -19,14 +19,14 @@ package org.apache.shardingsphere.infra.exception.dialect;
 
 import lombok.Getter;
 import lombok.RequiredArgsConstructor;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 /**
  * Table exists exception.
  */
 @RequiredArgsConstructor
 @Getter
-public final class TableExistsException extends InsideDialectSQLException {
+public final class TableExistsException extends SQLDialectException {
     
     private static final long serialVersionUID = 6056681626545854214L;
     
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TableModifyInTransactionException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TableModifyInTransactionException.java
index f60807798e4..dc97dca3de1 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TableModifyInTransactionException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TableModifyInTransactionException.java
@@ -19,14 +19,14 @@ package org.apache.shardingsphere.infra.exception.dialect;
 
 import lombok.Getter;
 import lombok.RequiredArgsConstructor;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 /**
  * Table modify in transaction exception.
  */
 @RequiredArgsConstructor
 @Getter
-public final class TableModifyInTransactionException extends 
InsideDialectSQLException {
+public final class TableModifyInTransactionException extends 
SQLDialectException {
     
     private static final long serialVersionUID = 5676889868293244575L;
     
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TooManyConnectionsException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TooManyConnectionsException.java
index 05d9c84b8d5..f6c2a4b8a7f 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TooManyConnectionsException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/TooManyConnectionsException.java
@@ -17,12 +17,12 @@
 
 package org.apache.shardingsphere.infra.exception.dialect;
 
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 /**
  * Too many connections exception.
  */
-public final class TooManyConnectionsException extends 
InsideDialectSQLException {
+public final class TooManyConnectionsException extends SQLDialectException {
     
     private static final long serialVersionUID = -4397915988239251541L;
 }
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/UnknownDatabaseException.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/UnknownDatabaseException.java
index 7cb9f72f467..7d5eff1ff60 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/UnknownDatabaseException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/exception/dialect/UnknownDatabaseException.java
@@ -19,14 +19,14 @@ package org.apache.shardingsphere.infra.exception.dialect;
 
 import lombok.Getter;
 import lombok.RequiredArgsConstructor;
-import 
org.apache.shardingsphere.infra.util.exception.inside.InsideDialectSQLException;
+import 
org.apache.shardingsphere.infra.util.exception.inside.SQLDialectException;
 
 /**
  * Unknown database exception.
  */
 @RequiredArgsConstructor
 @Getter
-public final class UnknownDatabaseException extends InsideDialectSQLException {
+public final class UnknownDatabaseException extends SQLDialectException {
     
     private static final long serialVersionUID = 6442120909016308638L;
     
diff --git 
a/shardingsphere-infra/shardingsphere-infra-util/src/main/java/org/apache/shardingsphere/infra/util/exception/inside/InsideDialectSQLException.java
 
b/shardingsphere-infra/shardingsphere-infra-util/src/main/java/org/apache/shardingsphere/infra/util/exception/inside/SQLDialectException.java
similarity index 88%
rename from 
shardingsphere-infra/shardingsphere-infra-util/src/main/java/org/apache/shardingsphere/infra/util/exception/inside/InsideDialectSQLException.java
rename to 
shardingsphere-infra/shardingsphere-infra-util/src/main/java/org/apache/shardingsphere/infra/util/exception/inside/SQLDialectException.java
index 2909f148b17..acde3c37801 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-util/src/main/java/org/apache/shardingsphere/infra/util/exception/inside/InsideDialectSQLException.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-util/src/main/java/org/apache/shardingsphere/infra/util/exception/inside/SQLDialectException.java
@@ -18,9 +18,9 @@
 package org.apache.shardingsphere.infra.util.exception.inside;
 
 /**
- * Inside dialect SQL exception.
+ * SQL dialect exception.
  */
-public abstract class InsideDialectSQLException extends 
ShardingSphereInsideException {
+public abstract class SQLDialectException extends 
ShardingSphereInsideException {
     
     private static final long serialVersionUID = -5090068160364259336L;
 }

Reply via email to