Browse Source

fix 修改异常参数,兼容原来的异常提示

daiyihua 1 year ago
parent
commit
c1208cb693
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/ywt/biz/common/exception/YwtException.java

+ 1 - 1
src/main/java/com/ywt/biz/common/exception/YwtException.java

@@ -59,7 +59,7 @@ public class YwtException extends RuntimeException {
      * @param cause 原始异常
      * @param cause 原始异常
      */
      */
 	protected YwtException(String errCode, String errMsg, String errDetail, Throwable cause) {
 	protected YwtException(String errCode, String errMsg, String errDetail, Throwable cause) {
-        super(cause);
+		super(errDetail, cause);
 		this.errCode = errCode;
 		this.errCode = errCode;
 		if (null != errDetail && !"".contentEquals(errDetail)) {
 		if (null != errDetail && !"".contentEquals(errDetail)) {
 			this.errMsg = errMsg;
 			this.errMsg = errMsg;