For a long time, Java suffered from issues when throwing an exception during stack unwind. The second exception is the one that is subsequently propagated, and in modern Java the original exception is available and printed in any stack trace.
It's still not particularly pleasant, but it is at least survivable and no information is lost.
It's still not particularly pleasant, but it is at least survivable and no information is lost.