Modified CommentDAOImpl

Reformatted
merge-requests/7/head
nishadi 7 years ago
parent 30ae09b067
commit a1868939a7

@ -238,9 +238,9 @@ public class CommentDAOImpl extends AbstractDAOImpl implements CommentDAO {
comments.add(comment);
}
} catch (DBConnectionException e) {
log.error("DB Connection Exception occurs.", e);
log.error("DB Connection Exception occurred while retrieving comments", e);
} catch (SQLException e) {
throw new CommentManagementException("Error occurred while retrieving comments", e);
throw new CommentManagementException("SQL Error occurred while retrieving comments", e);
} finally {
Util.cleanupResources(stmt, null);
}
@ -311,9 +311,9 @@ public class CommentDAOImpl extends AbstractDAOImpl implements CommentDAO {
}
}
} catch (SQLException e) {
throw new CommentManagementException("Error occurred while retrieving count of comments", e);
throw new CommentManagementException("SQL Error occurred while retrieving count of comments", e);
} catch (DBConnectionException e) {
log.error("DB Connection Exception occurs.", e);
log.error("DB Connection Exception occurred while retrieving count of comments", e);
} finally {
Util.cleanupResources(stmt, rs);
}

Loading…
Cancel
Save