From 46f087f215e744e191381d19273339f3727f4d93 Mon Sep 17 00:00:00 2001 From: nishadi Date: Tue, 16 Jan 2018 15:39:48 +0530 Subject: [PATCH] Adding Comment Management Exception Handle the Exceptions of Comment Management. --- .../exception/CommentManagementException.java | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/exception/CommentManagementException.java diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/exception/CommentManagementException.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/exception/CommentManagementException.java new file mode 100644 index 0000000000..53d5ebc99b --- /dev/null +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.common/src/main/java/org/wso2/carbon/device/application/mgt/common/exception/CommentManagementException.java @@ -0,0 +1,29 @@ +package org.wso2.carbon.device.application.mgt.common.exception; + +import org.wso2.carbon.device.application.mgt.common.Comment; + +public class CommentManagementException extends Exception{ + private String message; + + public CommentManagementException(String message, Throwable throwable) { + super(message, throwable); + setMessage(message); + } + + public CommentManagementException(String message) { + super(message); + setMessage(message); + } + + public CommentManagementException() { + + } + @Override + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } +}