提交 9778bbf7 authored 作者: inroi's avatar inroi

微调

上级 faee3c48
...@@ -4,28 +4,35 @@ import lombok.Data; ...@@ -4,28 +4,35 @@ import lombok.Data;
import java.util.List; import java.util.List;
/*金蝶云操作异常*/ /**
* 金蝶云操作异常
*/
@Data @Data
public class kingdeeException extends RuntimeException { public class kingdeeException extends RuntimeException {
public String result=new String(); public String result;
public String code; public String code;
public kingdeeException(String message,List<String> result,String code) {
public kingdeeException(String message, List<String> result, String code) {
super(message); super(message);
StringBuilder builder=new StringBuilder(); StringBuilder builder = new StringBuilder();
int length=result.size(); int length = result.size();
for (int i=0;i<length;i++) { for (int i = 0; i < length; i++) {
if(i==0) if (i == 0) {
{
builder.append(result.get(i)); builder.append(result.get(i));
} } else {
else
{
builder.append(" ").append(result.get(i)); builder.append(" ").append(result.get(i));
} }
} }
this.result= builder.toString(); this.result = builder.toString();
this.code=code; this.code = code;
} }
public kingdeeException(String message, String result, String code) {
super(message);
this.result = result;
this.code = code;
}
public String getResult() { public String getResult() {
return result; return result;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论