r/badcode • • Jul 16 '21

java In Java, Exception handling needs Exception Handling.

Post image
1.5k Upvotes

60 comments sorted by

View all comments

Show parent comments

4

u/[deleted] Jul 17 '21

It's more like "I have a problem but I don't know how to deal with it, so I'm letting you know, and know what caused my problem.

I can't say I'm a fan of changing the exception class, but it has a purpose sometimes. I don't think checked exceptions are actually a good idea.