-
Notifications
You must be signed in to change notification settings - Fork 592
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent close from hiding causal exceptions #528
* Exceptions thrown by a tool can be hidden by unsafe close methods throwing additional exceptions. Avoid this by making use of try-with-resources suppressed exception handling in order to surface the primary exception as well as the secondary ones. * Fixes #528
- Loading branch information
1 parent
527e5d7
commit 20b9dd0
Showing
2 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters