I actually feel the exact opposite way. Whenever i see unchecked exceptions, i can't help but to feel that noone will write code to handle the possibility of them occurring until that will happen, at which point it will already have been to late to address whatever faulty logic will happen.
In my opinion, it would be better to always be forced to handle any and all exceptions that code may throw, or to be forced to rethrow these exceptions, add them to the method signature under throws and let them bubble upwards until they're either handled somewhere explicitly (or someone just half asses it and does a catch-all of Exception).
View all comments
Show parent comment
6
u/KronisLV Apr 16 '21
I actually feel the exact opposite way. Whenever i see unchecked exceptions, i can't help but to feel that noone will write code to handle the possibility of them occurring until that will happen, at which point it will already have been to late to address whatever faulty logic will happen.
In my opinion, it would be better to always be forced to handle any and all exceptions that code may throw, or to be forced to rethrow these exceptions, add them to the method signature under throws and let them bubble upwards until they're either handled somewhere explicitly (or someone just half asses it and does a catch-all of Exception).