RaigorJiang commented on code in PR #24223:
URL: https://github.com/apache/shardingsphere/pull/24223#discussion_r1115918671
##########
infra/common/src/main/java/org/apache/shardingsphere/infra/datasource/state/exception/UnavailableDataSourceException.java:
##########
@@ -35,4 +35,8 @@ public final class UnavailableDataSourceException extends
ShardingSphereServerEx
public UnavailableDataSourceException(final SQLException cause) {
super(ERROR_CATEGORY, ERROR_CODE, "Data source unavailable.", cause);
}
+
+ public UnavailableDataSourceException(final SQLException cause, final
String databaseName) {
+ super(ERROR_CATEGORY, ERROR_CODE, String.format("Data source
unavailable from `%s` .", databaseName), cause);
Review Comment:
Hi @sunkai-cai ,
Is there an extra space after `%s`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]