Merge remote-tracking branch 'origin/dev-shangqing' into dev-shangqing

This commit is contained in:
yihzhou 2022-09-05 11:09:04 +08:00
commit 7e177e2518

View File

@ -81,6 +81,10 @@ public class SydApiException extends RuntimeException{
case 40000: case 40000:
this.msg = "输入的大数据处理异常"; this.msg = "输入的大数据处理异常";
case 56300:
this.msg = "证书导入错误";
case 56307:
this.msg = "证书删除错误";
default: default:
this.msg = "未定义的错误"; this.msg = "未定义的错误";
@ -88,14 +92,15 @@ public class SydApiException extends RuntimeException{
} }
public SydApiException(int retCode) { public SydApiException(int retCode) {
super("SydApiException(" + String.format("%04X", retCode) + ")" ); super("SydApiException(" + "code = "+String.format("%d", retCode) + ")" );
this.retCode = retCode; this.retCode = retCode;
transMsg(); transMsg();
} }
public SydApiException(String msg, int retCode){ public SydApiException(String msg, int ret){
super("SydApiException(" + String.format("%04X", retCode) + ":" + msg +")" ); super("SydApiException(" +"code ="+ String.format(" %d", ret) + " : "+"msg ="+ (null == msg ? "未定义的错误" : msg) +")" );
this.retCode = ret;
if (null == msg || "".equals(msg)){ if (null == msg || "".equals(msg)){
transMsg(); transMsg();
}else { }else {