You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/11/19 09:30:11 UTC

[GitHub] [rocketmq-ons] vongosling commented on a change in pull request #12: [ISSUE #13]Add OpenMessaging API support

vongosling commented on a change in pull request #12: [ISSUE #13]Add OpenMessaging API support
URL: https://github.com/apache/rocketmq-ons/pull/12#discussion_r347813568
 
 

 ##########
 File path: ons-core/ons-client/src/main/java/org/apache/rocketmq/ons/api/impl/rocketmq/ONSClientAbstract.java
 ##########
 @@ -74,16 +75,16 @@ public ONSClientAbstract(Properties properties) {
         this.sessionCredentials.updateContent(properties);
         if (this.sessionCredentials.getOnsChannel().equals(ONSChannel.ALIYUN) &&
             (null == this.sessionCredentials.getAccessKey() || "".equals(this.sessionCredentials.getAccessKey()))) {
-            throw new ONSClientException("please set access key");
+            throw new OMSRuntimeException("please set access key");
 
 Review comment:
   Do not use some "quirk comments" on exception, it would be better to conform to Imperative sentence while starting to begin with  the verb

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services