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

jiangmaolin 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 0aac1ef5537 Fix the error message of AlgorithmExecuteException (#35216)
0aac1ef5537 is described below

commit 0aac1ef5537978bf943b9be5607ce81380523c2f
Author: Raigor <raigor.ji...@gmail.com>
AuthorDate: Fri Apr 18 10:48:00 2025 +0800

    Fix the error message of AlgorithmExecuteException (#35216)
---
 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 +-
 .../infra/algorithm/core/exception/AlgorithmExecuteException.java     | 4 ++--
 3 files changed, 4 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 f8ee8b11724..587412c0574 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
@@ -44,7 +44,7 @@ SQL 错误码以标准的 SQL State,Vendor Code 和详细错误信息提供,
 | 10403       | 44000     | %s algorithms '%s' in database '%s' are still in 
used.                              |
 | 10404       | 44000     | Invalid %s algorithm configuration '%s'.           
                                 |
 | 10410       | 0A000     | Unsupported %s.%s with database type '%s'.         
                                 |
-| 10440       | HY000     | Algorithm '%s.%s' execute failed, reason is: %s.   
                                 |
+| 10440       | HY000     | Algorithm '%s' execute failed, reason is: %s.      
                                 |
 | 10500       | 44000     | Invalid single rule configuration, reason is: %s.  
                                 |
 | 10501       | 42S02     | Single table '%s' does not exist.                  
                                 |
 | 10502       | HY000     | Can not load table with database name '%s' and 
data source name '%s', 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 29398fa4eeb..b4459d5bf54 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
@@ -44,7 +44,7 @@ SQL error codes provide by standard `SQL State`, `Vendor 
Code` and `Reason`, whi
 | 10403       | 44000     | %s algorithms '%s' in database '%s' are still in 
used.                              |
 | 10404       | 44000     | Invalid %s algorithm configuration '%s'.           
                                 |
 | 10410       | 0A000     | Unsupported %s.%s with database type '%s'.         
                                 |
-| 10440       | HY000     | Algorithm '%s.%s' execute failed, reason is: %s.   
                                 |
+| 10440       | HY000     | Algorithm '%s' execute failed, reason is: %s.      
                                 |
 | 10500       | 44000     | Invalid single rule configuration, reason is: %s.  
                                 |
 | 10501       | 42S02     | Single table '%s' does not exist.                  
                                 |
 | 10502       | HY000     | Can not load table with database name '%s' and 
data source name '%s', reason is: %s |
diff --git 
a/infra/algorithm/core/src/main/java/org/apache/shardingsphere/infra/algorithm/core/exception/AlgorithmExecuteException.java
 
b/infra/algorithm/core/src/main/java/org/apache/shardingsphere/infra/algorithm/core/exception/AlgorithmExecuteException.java
index 7e55c978411..f36dde35ace 100644
--- 
a/infra/algorithm/core/src/main/java/org/apache/shardingsphere/infra/algorithm/core/exception/AlgorithmExecuteException.java
+++ 
b/infra/algorithm/core/src/main/java/org/apache/shardingsphere/infra/algorithm/core/exception/AlgorithmExecuteException.java
@@ -29,7 +29,7 @@ public final class AlgorithmExecuteException extends 
AlgorithmDefinitionExceptio
     private static final long serialVersionUID = -9099514178650043282L;
     
     public AlgorithmExecuteException(final ShardingSphereAlgorithm algorithm, 
final String reason, final Object... args) {
-        super(XOpenSQLState.GENERAL_ERROR, 40, "Algorithm '%s.%s' execute 
failed, reason is: %s.",
-                algorithm.getClass().getSuperclass().getSimpleName(), 
algorithm.getType(), String.format(reason, args));
+        super(XOpenSQLState.GENERAL_ERROR, 40, "Algorithm '%s' execute failed, 
reason is: %s.",
+                algorithm.getClass().getSimpleName(), String.format(reason, 
args));
     }
 }

Reply via email to