4 ms·
Yeah I agree. I think the problem with checked exceptions in Java is a combination of misuse on both the consuming and the throwing end. They're amazing when th
by p1necone 4y ago
Yeah I agree. I think the problem with checked exceptions in Java is a combination of misuse on both the consuming and the throwing end. They're amazing when they provide a compile time checked way to make sure consumers handle stuff they actually definitely want to handle, but if you add too much noise then all the consuming code is just going to catch and rethrow even the important ones.
- vbezhenar 4y agoI can't remember a single use case when library could definitely know that consumer must handle that particular exceptions. 100% of checked exception uses must be unchecked.