|
@@ -46,13 +46,16 @@ public class IotException extends RuntimeException {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public IotException(int errorCodeEnum, String errorMsg) {
|
|
public IotException(int errorCodeEnum, String errorMsg) {
|
|
|
|
|
+ super(errorMsg);
|
|
|
this.errorCode = String.valueOf(errorCodeEnum);
|
|
this.errorCode = String.valueOf(errorCodeEnum);
|
|
|
this.errorMsg = errorMsg;
|
|
this.errorMsg = errorMsg;
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public IotException( String errorMsg) {
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ public IotException(String errorMsg) {
|
|
|
|
|
+ super(errorMsg);
|
|
|
this.errorCode = "60500";
|
|
this.errorCode = "60500";
|
|
|
this.errorMsg = errorMsg;
|
|
this.errorMsg = errorMsg;
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|