mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Adding Comment Management Exception
Handle the Exceptions of Comment Management.
This commit is contained in:
parent
dbd9ad77ae
commit
46f087f215
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user