fixed formatting issues and removed storing error message

merge-requests/1/head
ayyoob 8 years ago
parent c9736707ca
commit dca55c7385

@ -20,29 +20,16 @@ package org.coffeeking.connectedcup.plugin.exception;
public class ConnectedCupDeviceMgtPluginException extends Exception{ public class ConnectedCupDeviceMgtPluginException extends Exception{
private String errorMessage;
public String getErrorMessage() {
return errorMessage;
}
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
}
public ConnectedCupDeviceMgtPluginException(String msg, Exception nestedEx) { public ConnectedCupDeviceMgtPluginException(String msg, Exception nestedEx) {
super(msg, nestedEx); super(msg, nestedEx);
setErrorMessage(msg);
} }
public ConnectedCupDeviceMgtPluginException(String message, Throwable cause) { public ConnectedCupDeviceMgtPluginException(String message, Throwable cause) {
super(message, cause); super(message, cause);
setErrorMessage(message);
} }
public ConnectedCupDeviceMgtPluginException(String msg) { public ConnectedCupDeviceMgtPluginException(String msg) {
super(msg); super(msg);
setErrorMessage(msg);
} }
public ConnectedCupDeviceMgtPluginException() { public ConnectedCupDeviceMgtPluginException() {

@ -38,8 +38,8 @@ public class ConnectedCupUtils {
public static String getDeviceProperty(List<Device.Property> deviceProperties, String propertyKey) { public static String getDeviceProperty(List<Device.Property> deviceProperties, String propertyKey) {
String deviceProperty = ""; String deviceProperty = "";
for(Device.Property property :deviceProperties){ for (Device.Property property : deviceProperties) {
if(propertyKey.equals(property.getName())){ if (propertyKey.equals(property.getName())) {
deviceProperty = property.getValue(); deviceProperty = property.getValue();
} }
} }

Loading…
Cancel
Save