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

    https://github.com/apache/flink/pull/4774#discussion_r143416489
  
    --- Diff: 
flink-core/src/main/java/org/apache/flink/configuration/IllegalConfigurationException.java
 ---
    @@ -42,6 +42,17 @@ public IllegalConfigurationException(String message) {
     
        /**
         * Constructs an new IllegalConfigurationException with the given error 
message
    +    * format and arguments.
    +    *
    +    * @param format The error message format for the exception.
    +    * @param arguments The arguments for the format.
    +    */
    +   public IllegalConfigurationException(String format, Object... 
arguments) {
    --- End diff --
    
    Convenience - reduces boiler plate. I prefer this:
    ```
    throw new IllegalConfigurationException("%s %s", foo, bar);
    ```
    to that:
    ```
    throw new IllegalConfigurationException(String.format("%s %s", foo, bar));
    ```
    same as it is done in loggers.


---

Reply via email to