Why does Java not support retrieval of exceptions from try/catch lost when an exception is thrown from finally?
问题 In Java 7, the feature was added to (via getSuppressed() ) get exceptions thrown from the implicit finally block of a try-with-resources statement. There still doesn't seem to be a way (that I know of) to do the opposite - when there is an explicit finally block and that throws an exception, masking the exceptions thrown and pending from the try/catch. Why does Java not provide functionality to get these buried/lost exceptions through a mechanism similar to getSuppressed() ? It would seem