抛异常问题
Unreachable catch block for SQLException. This exception is never thrown from the try statement body
try {
emp = empdao.findEmployeeByUserName(userName);
} catch (DataException e) {
logger.error("检查用户名出错", e);
throw new DataException(e);
} catch (SQLException e){
logger.error("数据库出错", e);
throw new DataException(e);
}
请问怎么解决??