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

zhonghongsheng 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 a23605c9a7f Remove ShardingPluginException (#30675)
a23605c9a7f is described below

commit a23605c9a7f0f571065ea2036eedfc80e9b90309
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Mar 27 23:23:11 2024 +0800

    Remove ShardingPluginException (#30675)
---
 .../user-manual/error-code/sql-error-code.cn.md    |  1 -
 .../user-manual/error-code/sql-error-code.en.md    |  1 -
 .../exception/ShardingPluginException.java         | 35 ----------------------
 3 files changed, 37 deletions(-)

diff --git a/docs/document/content/user-manual/error-code/sql-error-code.cn.md 
b/docs/document/content/user-manual/error-code/sql-error-code.cn.md
index 54ccb01e1f4..e1c7f8eb730 100644
--- a/docs/document/content/user-manual/error-code/sql-error-code.cn.md
+++ b/docs/document/content/user-manual/error-code/sql-error-code.cn.md
@@ -224,7 +224,6 @@ SQL 错误码以标准的 SQL State,Vendor Code 和详细错误信息提供,
 | 44000     | 20086       | Some routed data sources do not belong to 
configured data sources. routed data sources: \`%s\`, configured data sources: 
\`%s\`. |
 | 44000     | 20087       | Please check your sharding conditions \`%s\` to 
avoid same record in table \`%s\` routing to multiple data nodes.               
 |
 | 44000     | 20088       | Cannot found routing table factor, data source: 
%s, actual table: %s.                                                           
 |
-| HY000     | 20099       | Sharding plugin error, reason is: %s               
                                                                              |
 
 ### 读写分离
 
diff --git a/docs/document/content/user-manual/error-code/sql-error-code.en.md 
b/docs/document/content/user-manual/error-code/sql-error-code.en.md
index 80dd67d63e7..75226ea5904 100644
--- a/docs/document/content/user-manual/error-code/sql-error-code.en.md
+++ b/docs/document/content/user-manual/error-code/sql-error-code.en.md
@@ -224,7 +224,6 @@ SQL error codes provide by standard `SQL State`, `Vendor 
Code` and `Reason`, whi
 | 44000     | 20086       | Some routed data sources do not belong to 
configured data sources. routed data sources: \`%s\`, configured data sources: 
\`%s\`. |
 | 44000     | 20087       | Please check your sharding conditions \`%s\` to 
avoid same record in table \`%s\` routing to multiple data nodes.               
 |
 | 44000     | 20088       | Cannot found routing table factor, data source: 
%s, actual table: %s.                                                           
 |
-| HY000     | 20099       | Sharding plugin error, reason is: %s               
                                                                              |
 
 ### Readwrite-splitting
 
diff --git 
a/features/sharding/api/src/main/java/org/apache/shardingsphere/sharding/exception/ShardingPluginException.java
 
b/features/sharding/api/src/main/java/org/apache/shardingsphere/sharding/exception/ShardingPluginException.java
deleted file mode 100644
index 7dda4ce0d9d..00000000000
--- 
a/features/sharding/api/src/main/java/org/apache/shardingsphere/sharding/exception/ShardingPluginException.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.shardingsphere.sharding.exception;
-
-import 
org.apache.shardingsphere.infra.exception.core.external.sql.sqlstate.XOpenSQLState;
-import 
org.apache.shardingsphere.infra.exception.core.external.sql.type.feature.FeatureSQLException;
-
-/**
- * Sharding plugin exception.
- */
-public final class ShardingPluginException extends FeatureSQLException {
-    
-    private static final long serialVersionUID = 3683604626004382449L;
-    
-    private static final int FEATURE_CODE = 0;
-    
-    public ShardingPluginException(final String reason, final Object... args) {
-        super(XOpenSQLState.GENERAL_ERROR, FEATURE_CODE, 99, "Sharding plugin 
error, reason is: " + reason, args);
-    }
-}

Reply via email to