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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to