Commit be481034 authored by yanzg's avatar yanzg

升级新版本

parent 6723d6d8
...@@ -2,6 +2,7 @@ package com.yanzuoguang.util.vo; ...@@ -2,6 +2,7 @@ package com.yanzuoguang.util.vo;
import com.yanzuoguang.util.contants.ResultConstants; import com.yanzuoguang.util.contants.ResultConstants;
import com.yanzuoguang.util.exception.CodeException; import com.yanzuoguang.util.exception.CodeException;
import com.yanzuoguang.util.exception.CodeTargetException;
import com.yanzuoguang.util.exception.RuntimeCodeException; import com.yanzuoguang.util.exception.RuntimeCodeException;
import com.yanzuoguang.util.helper.StringHelper; import com.yanzuoguang.util.helper.StringHelper;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
...@@ -95,8 +96,10 @@ public class ResponseResult<T> extends BaseVo { ...@@ -95,8 +96,10 @@ public class ResponseResult<T> extends BaseVo {
return this.data; return this.data;
} }
if (this.codeError) { if (this.codeError && this.target != null) {
throw new CodeException(this.code, this.message, this.target); throw new CodeTargetException(this.code, this.message, this.target);
} else if (this.codeError) {
throw new CodeException(this.code, this.message);
} else { } else {
throw new RuntimeCodeException(this.code, this.message, this.target); throw new RuntimeCodeException(this.code, this.message, this.target);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment