When you catch an exception to throw a new higher-level one, make sure to set the original exception as the cause. 

es.uniovi.reflection.analyses.bloch.9.61.2


This rule detects methods that may throw a checked exception whose particular type is not declared in the throws clause (because a supertype is declared to be thrown instead).

Computational Reflection Research Group
12-03-2025 17:14
Bad Practice
Throw Statement