in src/java/detectors/missing_specifically_thrown_exception_handling/MissingSpecificallyThrownExceptionHandling.java [14:24]
public void exceptionHandlingNoncompliant() {
// Noncompliant: catch block handles generic Exception, but not SomeException.
try {
doSomething();
throw new SomeException();
} catch (IndexOutOfBoundsException e) {
log.error(e.getMessage());
} catch (Exception e) {
log.error(e.getMessage());
}
}