hansva commented on code in PR #1486:
URL: https://github.com/apache/hop/pull/1486#discussion_r872258369
##########
plugins/engines/beam/src/main/java/org/apache/hop/beam/engines/BeamPipelineEngine.java:
##########
@@ -1532,4 +1537,19 @@ public void setBeamEngineRunConfiguration(
IBeamPipelineEngineRunConfiguration beamEngineRunConfiguration) {
this.beamEngineRunConfiguration = beamEngineRunConfiguration;
}
+
+ private <R> R safelyCall(ThrowingSupplier<R> supplier) {
+ return safelyCall(supplier, null);
+ }
+
+ private <R> R safelyCall(ThrowingSupplier<R> supplier, R defaultValue) {
+ try {
+ return supplier.get();
+ } catch (UnsupportedOperationException e) {
+ logChannel.logBasic(e.getMessage());
Review Comment:
ignore this comment, Basic is good as it is to catch Unsupported
--
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]