Example
public static class
ClassA {
Logger logger = Logger.getLogger("ClassA");
public
void
methodA()
throws
Exception {
try
{
//...
}
catch
( Exception e ) {
logger.log(Level.SEVERE, "Uncaught exception: ", e);
throw new
Exception();
}
}
}
Solution
Reconsider the functionality of the catch clause. Choose whether it should log the exception or throw a new exception.