phet commented on code in PR #3997:
URL: https://github.com/apache/gobblin/pull/3997#discussion_r1672763276


##########
gobblin-service/src/main/java/org/apache/gobblin/service/monitoring/KafkaJobStatusMonitor.java:
##########
@@ -409,4 +428,7 @@ public static long getExecutionIdFromTableName(String 
tableName) {
 
   protected abstract org.apache.gobblin.configuration.State 
parseJobStatus(GobblinTrackingEvent event);
 
+  public static boolean isExceptionInstanceOf(Exception exception, 
List<Class<? extends Exception>> typesList) {
+    return typesList.stream().anyMatch(e -> e.isInstance(exception));
+  }

Review Comment:
   NBD, but this would better belong in a util lib



-- 
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