完善异常信息捕获、证书列表获取

This commit is contained in:
yihzhou
2022-11-28 10:17:52 +08:00
parent 99a7462fdf
commit 0f28395ce9
5 changed files with 130 additions and 186 deletions
@@ -107,6 +107,12 @@ public class SydApiException extends RuntimeException{
transMsg();
}
public SydApiException(int retCode, Exception e) {
super("SydApiException(" + "code = "+String.format("%04x", retCode) + ")" , e);
this.retCode = retCode;
transMsg();
}
public SydApiException(String msg, int retCode){
super("SydApiException(" + String.format(" %04X", retCode) + ":" + ( null == msg ? transMsg(retCode) : msg ) + ")" );