This is an automated email from the ASF dual-hosted git repository.
jianglongtao 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 0844bbe34e7 Refactor RuleNotExistedException and
ResourceNotExistedException (#20172)
0844bbe34e7 is described below
commit 0844bbe34e7f2db1b664d6f1ca524c91850db4b6
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Aug 14 23:54:04 2022 +0800
Refactor RuleNotExistedException and ResourceNotExistedException (#20172)
---
.../proxy/backend/exception/ResourceNotExistedException.java | 2 +-
.../shardingsphere/proxy/backend/exception/RuleNotExistedException.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/ResourceNotExistedException.java
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/ResourceNotExistedException.java
index a9a36273f66..99e54047592 100644
---
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/ResourceNotExistedException.java
+++
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/ResourceNotExistedException.java
@@ -28,6 +28,6 @@ public final class ResourceNotExistedException extends
ShardingSphereSQLExceptio
private static final long serialVersionUID = 4146100333670404924L;
public ResourceNotExistedException() {
- super(XOpenSQLState.SYNTAX_ERROR, 1305, "Data source or rule does not
exist");
+ super(XOpenSQLState.SYNTAX_ERROR, 1305, "Data source does not exist");
}
}
diff --git
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/RuleNotExistedException.java
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/RuleNotExistedException.java
index 378b92182a8..1e08d847fc9 100644
---
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/RuleNotExistedException.java
+++
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/exception/RuleNotExistedException.java
@@ -28,6 +28,6 @@ public final class RuleNotExistedException extends
ShardingSphereSQLException {
private static final long serialVersionUID = -4150905802300104824L;
public RuleNotExistedException() {
- super(XOpenSQLState.SYNTAX_ERROR, 1305, "Data source or rule does not
exist");
+ super(XOpenSQLState.SYNTAX_ERROR, 1305, "Rule does not exist");
}
}