3 ms·
Any fallible cleanup function is awkward, regardless of error handling mechanism.
by leni536 10mo ago
Any fallible cleanup function is awkward, regardless of error handling mechanism.
- layer8 10mo agoJava solved it by having exceptions be able to attach secondary exceptions, in particular those occurring during stack unwinding (via try-with-resources). The result is an exception tree that reflects the failures that occurred in the call tree following the first exception.
- NBJack 10mo agoI often miss this feature in other languages. It has saved me more times than I can count.