瀏覽代碼

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

daiyihua 1 年之前
父節點
當前提交
c1208cb693
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 原始异常
      */
 	protected YwtException(String errCode, String errMsg, String errDetail, Throwable cause) {
-        super(cause);
+		super(errDetail, cause);
 		this.errCode = errCode;
 		if (null != errDetail && !"".contentEquals(errDetail)) {
 			this.errMsg = errMsg;