扩展异常类
This commit is contained in:
parent
6cb3072453
commit
d9c5e01105
@ -88,13 +88,14 @@ public class SydApiException extends RuntimeException{
|
||||
}
|
||||
|
||||
public SydApiException(int retCode) {
|
||||
super("SydApiException(" + String.format("%04X", retCode) + ")" );
|
||||
this.retCode = retCode;
|
||||
transMsg();
|
||||
}
|
||||
|
||||
|
||||
public SydApiException(String msg, int ret){
|
||||
this(ret);
|
||||
public SydApiException(String msg, int retCode){
|
||||
super("SydApiException(" + String.format("%04X", retCode) + ":" + msg +")" );
|
||||
if (null == msg || "".equals(msg)){
|
||||
transMsg();
|
||||
}else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user