From b60487304f8a05378e89c03a96aa893347e29e68 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Thu, 28 Jul 2016 17:37:18 +0530 Subject: [PATCH] removed error message variable --- .../exception/OAuthTokenValidationException.java | 12 ------------ .../exception/OAuthTokenValidationException.java | 11 ----------- 2 files changed, 23 deletions(-) diff --git a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.input.adapter.http/src/main/java/org/wso2/carbon/device/mgt/iot/input/adapter/http/oauth/exception/OAuthTokenValidationException.java b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.input.adapter.http/src/main/java/org/wso2/carbon/device/mgt/iot/input/adapter/http/oauth/exception/OAuthTokenValidationException.java index 95cfb7cca..09e9cb612 100644 --- a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.input.adapter.http/src/main/java/org/wso2/carbon/device/mgt/iot/input/adapter/http/oauth/exception/OAuthTokenValidationException.java +++ b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.input.adapter.http/src/main/java/org/wso2/carbon/device/mgt/iot/input/adapter/http/oauth/exception/OAuthTokenValidationException.java @@ -21,21 +21,17 @@ package org.wso2.carbon.device.mgt.iot.input.adapter.http.oauth.exception; * This Exception will be thrown, when there any interference with token validation flow. */ public class OAuthTokenValidationException extends Exception { - private String errMessage; public OAuthTokenValidationException(String msg, Exception nestedEx) { super(msg, nestedEx); - setErrorMessage(msg); } public OAuthTokenValidationException(String message, Throwable cause) { super(message, cause); - setErrorMessage(message); } public OAuthTokenValidationException(String msg) { super(msg); - setErrorMessage(msg); } public OAuthTokenValidationException() { @@ -45,12 +41,4 @@ public class OAuthTokenValidationException extends Exception { public OAuthTokenValidationException(Throwable cause) { super(cause); } - - public String getErrorMessage() { - return errMessage; - } - - public void setErrorMessage(String errMessage) { - this.errMessage = errMessage; - } } diff --git a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.output.adapter.ui/src/main/java/org/wso2/carbon/device/mgt/iot/output/adapter/ui/authentication/oauth/exception/OAuthTokenValidationException.java b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.output.adapter.ui/src/main/java/org/wso2/carbon/device/mgt/iot/output/adapter/ui/authentication/oauth/exception/OAuthTokenValidationException.java index 514afe35a..282a22748 100644 --- a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.output.adapter.ui/src/main/java/org/wso2/carbon/device/mgt/iot/output/adapter/ui/authentication/oauth/exception/OAuthTokenValidationException.java +++ b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot.output.adapter.ui/src/main/java/org/wso2/carbon/device/mgt/iot/output/adapter/ui/authentication/oauth/exception/OAuthTokenValidationException.java @@ -21,21 +21,17 @@ package org.wso2.carbon.device.mgt.iot.output.adapter.ui.authentication.oauth.ex * This Exception will be thrown, when there any interference with token validation flow. */ public class OAuthTokenValidationException extends Exception { - private String errMessage; public OAuthTokenValidationException(String msg, Exception nestedEx) { super(msg, nestedEx); - setErrorMessage(msg); } public OAuthTokenValidationException(String message, Throwable cause) { super(message, cause); - setErrorMessage(message); } public OAuthTokenValidationException(String msg) { super(msg); - setErrorMessage(msg); } public OAuthTokenValidationException() { @@ -46,11 +42,4 @@ public class OAuthTokenValidationException extends Exception { super(cause); } - public String getErrorMessage() { - return errMessage; - } - - public void setErrorMessage(String errMessage) { - this.errMessage = errMessage; - } }