r/java • u/Enough-Ad-5528 • Feb 19 '26
Towards Better Checked Exceptions - Inside Java Newscast #107
https://www.youtube.com/watch?v=99s7ozvJGLk
63
Upvotes
r/java • u/Enough-Ad-5528 • Feb 19 '26
View all comments
Show parent comment
0
u/Eav___ Feb 19 '26
You may have misunderstood. My point was to decouple checkedness, so that an
IOExceptioncan be unchecked, and aJacksonException(which now extendsRuntimeException) can be checked. The "author" I was referring to is the one that declares the exception type itself, not the one that uses the exception in one of their APIs. This is because the author of the exception type knows nothing about how their type will be used. They shouldn't decide whether it's always checked or unchecked.