From 9481869e7c7af0db99a9f3df119c4812f5cdbdae Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: Sun, 26 Jan 2025 14:17:08 +0800
Subject: [PATCH] 修改报错
---
ruoyi-common/src/main/java/com/ruoyi/common/exception/BusinessException.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/exception/BusinessException.java b/ruoyi-common/src/main/java/com/ruoyi/common/exception/BusinessException.java
index 6b46590..69dfcec 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/exception/BusinessException.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/exception/BusinessException.java
@@ -10,11 +10,11 @@
private String message;
-// public BusinessException(ResultCode error) {
-// super(error.getDesc());
-// this.code = error.getCode();
-// this.message = error.getDesc();
-// }
+ public BusinessException(ResultConstants error) {
+ super(error.getDesc());
+ this.code = error.getCode();
+ this.message = error.getDesc();
+ }
public BusinessException(Class causeClass, ResultConstants error) {
super(error.getDesc());
--
Gitblit v1.9.2