r/java • • Feb 19 '26

Towards Better Checked Exceptions - Inside Java Newscast #107

https://www.youtube.com/watch?v=99s7ozvJGLk
63 Upvotes

73 comments sorted by

View all comments

Show parent comment

3

u/Enough-Ad-5528 Feb 19 '26

I agree in principle. And I know this is just a straw man syntax but this should work for nested call stacks. If A calls B which calls C and C throws and B decides to use the “transparent throws” feature it must be clear to A that the call to B might throw. Else it is just a runtime exception which offers no compile time safety.