diff --git a/src/main/java/com/sunyard/SydApiException.java b/src/main/java/com/sunyard/SydApiException.java index 3482948..107ea47 100644 --- a/src/main/java/com/sunyard/SydApiException.java +++ b/src/main/java/com/sunyard/SydApiException.java @@ -102,14 +102,14 @@ public class SydApiException extends RuntimeException{ } public SydApiException(int retCode) { - super("SydApiException(" + "code = "+String.format("%d", retCode) + ")" ); + super("SydApiException(" + "code = "+String.format("%04x", retCode) + ")" ); this.retCode = retCode; transMsg(); } public SydApiException(String msg, int retCode){ - super("SydApiException(" + String.format("%04X", retCode) + ":" + ( null == msg ? transMsg(retCode) : msg ) + ")" ); + super("SydApiException(" + String.format(" %04X", retCode) + ":" + ( null == msg ? transMsg(retCode) : msg ) + ")" ); this.retCode = retCode; if (null == msg || "".equals(msg)){ transMsg();