You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/10/29 02:59:54 UTC

[GitHub] [flink] becketqin commented on a change in pull request #13784: [FLINK-19698][connectors/common] API improvements to the Sources.

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:
users@infra.apache.org