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); }