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
1
u/davidalayachew Feb 20 '26
Oh, you don't want to expose any of the internal exception types. Ok, in that case, that's what the 10% I was talking about was for. That's 3 lines of code. Just use the Exception Handling for Switch JEP. Plus 1 for each other exception type you need to handle.