From da6a532edb6b8992779017d6becd34aa8d39e3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Mon, 16 Jun 2025 18:14:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BC=82=E5=B8=B8=E5=A0=86?= =?UTF-8?q?=E6=A0=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/zhangdeman/context/Response.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/zhangdeman/context/Response.java b/src/main/java/cn/zhangdeman/context/Response.java index 1460cdd..bef5c30 100644 --- a/src/main/java/cn/zhangdeman/context/Response.java +++ b/src/main/java/cn/zhangdeman/context/Response.java @@ -128,7 +128,7 @@ public class Response implements Serializable { public Response failure(RuntimeContext runtimeContext, HttpStatus httpStatus, CustomException customException) { setHandleSuccess(false); - setErrorDetail(customException.getStackTrace()); // 异常堆栈 + setErrorDetail(customException.getCause().toString()); // 异常堆栈 // 错误码使用 category+_+code return any(runtimeContext, httpStatus, customException.getCategory() + "_"+customException.getCode(), customException.getMessage(), null); }