You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@inlong.apache.org by GitBox <gi...@apache.org> on 2021/07/28 11:23:48 UTC

[GitHub] [incubator-inlong] dockerzhang opened a new issue #827: [INLONG-228] Fixed: Exception used

dockerzhang opened a new issue #827:
URL: https://github.com/apache/incubator-inlong/issues/827


   <p>Fix exception use</p>
   <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
   <pre class="code-java">
   Exception -> IllegalArgumentException
   </pre>
   </div></div>
   <p>Example</p>
   <div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
   <pre class="code-java">
   <span class="code-keyword">if</span> (TStringUtils.isBlank(strTimeVal)) {
       <span class="code-keyword">throw</span> <span class="code-keyword">new</span> Exception(strValName + <span class="code-quote">" value is <span class="code-keyword">null</span> or blank of "</span>
       + ruleType + <span class="code-quote">" limit rule!"</span>);
   }
   
   change to 
   
   <span class="code-keyword">if</span> (TStringUtils.isBlank(strTimeVal)) {
       <span class="code-keyword">throw</span> <span class="code-keyword">new</span> IllegalArgumentException(strValName + <span class="code-quote">" value is <span class="code-keyword">null</span> or blank of "</span>
       + ruleType + <span class="code-quote">" limit rule!"</span>);
   }</pre>
   </div></div>
   <i>JIRA link - <a href="https://issues.apache.org/jira/browse/INLONG-228">[INLONG-228]</a> created by viviel</i>


-- 
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: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-inlong] dockerzhang closed issue #827: [INLONG-228] Fixed: Exception used

Posted by GitBox <gi...@apache.org>.
dockerzhang closed issue #827:
URL: https://github.com/apache/incubator-inlong/issues/827


   


-- 
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: dev-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org