From 48a1aa828c7f7e7234e9124000557fb35f47429a Mon Sep 17 00:00:00 2001 From: "junj2.liang" Date: Thu, 8 Sep 2022 10:33:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=82=E5=B8=B8=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/sunyard/SydApiException.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();