Is there a better way to handle close exceptions in a java try-with-resources close [duplicate]
This question already has answers here: Catch errors during object construction from try-with-resources separately from body (3 answers) Closed last month. With try-with-resources, we are guaranteed the resources will be closed, but if there is also a catch on the try, that catch will get either of the exceptions from the try block or the […]