3 ms·
The problem is handled with exceptions plus Java's try-with-resources or C#'s using statements or Python's context managers though, right? Furthermore in Java
by shawnz 2y ago
The problem is handled with exceptions plus Java's try-with-resources or C#'s using statements or Python's context managers though, right?
Furthermore in Java since version 7 you can actually see both exceptions with the suppressed exceptions pattern.
- cyco130 2y agoSee my reply to the sibling comment about try-with-resources. I'm not familiar with any of these mechanisms but giving access to suppressed exceptions is probably a step in the right direction.