Disallow extending Throwable
Open
migrated
Priority-Medium
Type-NewCheck
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
_[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.
Contributor guide
Assessment
This issue has not been assessed yet.