package org.dromara.common.core.exception;

import lombok.Data;

/**
 * @Author: Huanyi
 * @CreateTime: 2025-12-03
 * @Description: 统一的业务异常
 * @Version: 1.0
 */

@Data
public class BusinessException extends RuntimeException {

    private Integer code;

    private String message;

    public BusinessException(String message) {
        this.code = 501;
        this.message = message;
    }

}
