becketqin commented on a change in pull request #13784:
URL: https://github.com/apache/flink/pull/13784#discussion_r513902647



##########
File path: flink-core/src/main/java/org/apache/flink/util/ExceptionUtils.java
##########
@@ -565,6 +565,20 @@ else if (t instanceof Error) {
                return Optional.empty();
        }
 
+       /**
+        * Find the root cause of the given throwable chain.
+        *
+        * @param throwable the throwable chain to check.
+        * @return the root cause of the throwable chain.
+        */
+       public static Throwable findRootCause(Throwable throwable) {

Review comment:
       Good point. I'll just reuse the Apache Commons Lang.




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


Reply via email to