From 8cc165c9bed0934f538c7699d08a114746fd2a61 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 20:27:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=BC=82=E5=B8=B8NPE=E9=97=AE=E9=A2=98?= 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 bef5c30..a17183a 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.getCause().toString()); // 异常堆栈 + setErrorDetail(customException.getData()); // 异常堆栈 // 错误码使用 category+_+code return any(runtimeContext, httpStatus, customException.getCategory() + "_"+customException.getCode(), customException.getMessage(), null); }