mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Modified CommentDAOImpl
Reformatted
This commit is contained in:
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…
Reference in New Issue
Block a user