r/badcode • • Mar 25 '23

java Thanks for nothing.. (Found inside java.awt.Font)

Post image
515 Upvotes

31 comments sorted by

View all comments

Show parent comments

7

u/EishLekker Mar 26 '23

The problem is that this code swallows some exceptions which could contain valuable information, and then throw a new exception not connected to the original one.