google / google/error-prone

Disallow extending Throwable

Aperta
#167 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
migrated Priority-Medium Type-NewCheck
Lingua principale
Java
Stelle
7.2k
Fork
820
Merge medio
5h 9m
PR unite (30g)
50

Descrizione

_[Original issue](https://code.google.com/p/error-prone/issues/detail?id=167) 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.