Przeglądaj źródła

exception问题修复

xiuwei 3 lat temu
rodzic
commit
37b4d35d70

+ 12 - 2
protocol-iec104/src/main/java/wei/yigulu/iec104/exception/Iec104Exception.java

@@ -10,11 +10,21 @@ import lombok.NoArgsConstructor;
  * @author 修唯xiuwei
  * @version 3.0
  */
-@AllArgsConstructor
-@NoArgsConstructor
 @Data
 public class Iec104Exception extends Exception {
 
+
+	/**
+	 * Iec exception
+	 *
+	 * @param msg msg
+	 */
+	public Iec104Exception(int code,String msg) {
+		super(msg);
+		this.code=code;
+		this.msg = msg;
+	}
+
 	/**
 	 * Iec exception
 	 *