Github user xuanyuanking commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22989#discussion_r233432568
  
    --- Diff: dev/checkstyle.xml ---
    @@ -180,5 +180,10 @@
             <module name="UnusedImports"/>
             <module name="RedundantImport"/>
             <module name="RedundantModifier"/>
    +        <module name="RegexpSinglelineJava">
    +            <property name="format" value="throw new \w+Error\("/>
    +            <property name="message" value="Avoid throwing error in 
application code."/>
    --- End diff --
    
    `application code` against JVM here, as Error subclasses generally 
represent internal JVM errors.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to