error-prone
error-prone copied to clipboard
Disallow extending Throwable
Original issue created by [email protected] on 2013-08-01 at 12:19 AM
Java allows you to extend Throwable, but it's generally a bad idea. Most error handling code assumes that the only direct subtypes of Throwable are Exception and Error, and do not deal correctly with other subtypes.
Hi! We are a small group of KTH students who would like to try to contribute towards this issue. Is it OK to open a PR for it?