教育训练处考试制证系统后端
zhangf
2024-06-24 21362fd048558832cdcaca8ee957d2d7aa753be2
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());