From a1868939a7e7b33e17b3334388effb1b53bb4ea4 Mon Sep 17 00:00:00 2001 From: nishadi Date: Thu, 18 Jan 2018 02:44:56 +0530 Subject: [PATCH] Modified CommentDAOImpl Reformatted --- .../mgt/core/dao/impl/Comment/CommentDAOImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/impl/Comment/CommentDAOImpl.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/impl/Comment/CommentDAOImpl.java index 66bfbb1df7..6edbd0218a 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/impl/Comment/CommentDAOImpl.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dao/impl/Comment/CommentDAOImpl.java @@ -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); }