Back to Intellij Community

DuplicateThrows

java/java-impl/resources/inspectionDescriptions/DuplicateThrows.html

2025.3-rc-2293 B
Original Source

Reports duplicate exceptions in a method throws list.

Example:

void f() throws Exception, Exception {}

After the quick-fix is applied:

void f() throws Exception {}

Use the Ignore exceptions subclassing others option to ignore exceptions subclassing other exceptions.