diff --git a/src/main/java/com/sunyard/SydApiException.java b/src/main/java/com/sunyard/SydApiException.java index 3171b7e..ea60670 100644 --- a/src/main/java/com/sunyard/SydApiException.java +++ b/src/main/java/com/sunyard/SydApiException.java @@ -81,6 +81,10 @@ public class SydApiException extends RuntimeException{ case 40000: this.msg = "输入的大数据处理异常"; + case 56300: + this.msg = "证书导入错误"; + case 56307: + this.msg = "证书删除错误"; default: this.msg = "未定义的错误"; @@ -88,13 +92,15 @@ public class SydApiException extends RuntimeException{ } public SydApiException(int retCode) { + super("SydApiException(" + "code = "+String.format("%d", retCode) + ")" ); this.retCode = retCode; transMsg(); } public SydApiException(String msg, int ret){ - this(ret); + super("SydApiException(" +"code ="+ String.format(" %d", ret) + " : "+"msg ="+ (null == msg ? "未定义的错误" : msg) +")" ); + this.retCode = ret; if (null == msg || "".equals(msg)){ transMsg(); }else {