cushon / issues-import

0 stars 0 forks source link

Disallow extending Throwable #167

Open cushon opened 9 years ago

cushon commented 9 years ago

Original issue created by eaftan@google.com 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.