rdblue commented on issue #1904:
URL: https://github.com/apache/iceberg/issues/1904#issuecomment-742917677


   @aokolnychyi, @RussellSpitzer, I opened a PR with an implementation that I 
think works well: 
https://github.com/apache/iceberg/pull/1909/files#diff-05514568d4022f3fbd510618bdf1ff14b32271158d385e07879a3181d0b9baaaR40-R46
   
   Lambdas really help here because the classes get ugly. It supports up to 3 
checked exceptions. The classes must be passed as arguments, but otherwise it 
looks roughly the same. There are still some cases that get wrapped in 
RuntimeException, like any throwable from the main block that isn't a 
`RuntimeException` or one of the passed checked exceptions. Same with any 
throwable from the finally block if the main block didn't throw an exception.


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to