优化异常堆栈
This commit is contained in:
parent
42e26ebd67
commit
da6a532edb
@ -128,7 +128,7 @@ public class Response<Data> implements Serializable {
|
||||
|
||||
public Response<Data> 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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user