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

chengzhang 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 fb2f599b96c Fix the error message of AlgorithmInitializationException 
(#35215)
fb2f599b96c is described below

commit fb2f599b96c374e653cf18286e3bd23d94541ec3
Author: Raigor <raigor.ji...@gmail.com>
AuthorDate: Fri Apr 18 09:49:02 2025 +0800

    Fix the error message of AlgorithmInitializationException (#35215)
---
 docs/document/content/user-manual/error-code/sql-error-code.cn.md      | 2 +-
 docs/document/content/user-manual/error-code/sql-error-code.en.md      | 2 +-
 .../algorithm/core/exception/AlgorithmInitializationException.java     | 3 +--
 3 files changed, 3 insertions(+), 4 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 34c7eb4f443..f8ee8b11724 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
@@ -38,7 +38,7 @@ SQL 错误码以标准的 SQL State,Vendor Code 和详细错误信息提供,
 | 10210       | 42S02     | %s strategies '%s' do not exist.                   
                                 |
 | 10300       | HY000     | Invalid format for actual data node '%s'.          
                                 |
 | 10301       | 0A000     | Can not support 3-tier structure for actual data 
node '%s' with JDBC '%s'.          |
-| 10400       | 44000     | Algorithm '%s.'%s' initialization failed, reason 
is: %s.                            |
+| 10400       | 44000     | Algorithm '%s' initialization failed, reason is: 
%s.                                |
 | 10401       | 42S02     | '%s' algorithm on %s is required.                  
                                 |
 | 10402       | 42S02     | '%s' algorithm '%s' on %s is unregistered.         
                                 |
 | 10403       | 44000     | %s algorithms '%s' in database '%s' are still in 
used.                              |
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 c99ee23f7a9..29398fa4eeb 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
@@ -38,7 +38,7 @@ SQL error codes provide by standard `SQL State`, `Vendor 
Code` and `Reason`, whi
 | 10210       | 42S02     | %s strategies '%s' do not exist.                   
                                 |
 | 10300       | HY000     | Invalid format for actual data node '%s'.          
                                 |
 | 10301       | 0A000     | Can not support 3-tier structure for actual data 
node '%s' with JDBC '%s'.          |
-| 10400       | 44000     | Algorithm '%s.'%s' initialization failed, reason 
is: %s.                            |
+| 10400       | 44000     | Algorithm '%s' initialization failed, reason is: 
%s.                                |
 | 10401       | 42S02     | '%s' algorithm on %s is required.                  
                                 |
 | 10402       | 42S02     | '%s' algorithm '%s' on %s is unregistered.         
                                 |
 | 10403       | 44000     | %s algorithms '%s' in database '%s' are still in 
used.                              |
diff --git 
a/infra/algorithm/core/src/main/java/org/apache/shardingsphere/infra/algorithm/core/exception/AlgorithmInitializationException.java
 
b/infra/algorithm/core/src/main/java/org/apache/shardingsphere/infra/algorithm/core/exception/AlgorithmInitializationException.java
index 0c7ba53357c..fa46eae0a7a 100644
--- 
a/infra/algorithm/core/src/main/java/org/apache/shardingsphere/infra/algorithm/core/exception/AlgorithmInitializationException.java
+++ 
b/infra/algorithm/core/src/main/java/org/apache/shardingsphere/infra/algorithm/core/exception/AlgorithmInitializationException.java
@@ -28,7 +28,6 @@ public final class AlgorithmInitializationException extends 
AlgorithmDefinitionE
     private static final long serialVersionUID = -7634670846091616790L;
     
     public AlgorithmInitializationException(final ShardingSphereAlgorithm 
algorithm, final String reason, final Object... args) {
-        super(XOpenSQLState.CHECK_OPTION_VIOLATION, 0, "Algorithm '%s.'%s' 
initialization failed, reason is: %s.",
-                algorithm.getClass().getSuperclass().getSimpleName(), 
algorithm.getType(), String.format(reason, args));
+        super(XOpenSQLState.CHECK_OPTION_VIOLATION, 0, "Algorithm '%s' 
initialization failed, reason is: %s.", algorithm.getClass().getSimpleName(), 
String.format(reason, args));
     }
 }

Reply via email to