修改异常类
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user