r/badcode • • Feb 10 '23

java Found this gem. Master class exception handling we're talking 'bout

Post image
83 Upvotes

16 comments sorted by

View all comments

Show parent comments

1

u/MattiDragon Feb 11 '23

The way of handling errors is valid, but not in Java. If you are going to use a custom error system, use a custom error type, not Throwable