package cn.stylefeng.team.view.api.exception.enums;

import cn.stylefeng.roses.kernel.rule.constants.RuleConstants;
import cn.stylefeng.roses.kernel.rule.exception.AbstractExceptionEnum;
import cn.stylefeng.team.view.api.constants.ViewConstants;
import lombok.Getter;

@Getter
public enum ViewExceptionEnum implements AbstractExceptionEnum {

    CANT_FIND_VIEW(RuleConstants.BUSINESS_ERROR_TYPE_CODE + ViewConstants.VIEW_EXCEPTION_STEP_CODE + "01", "查询不到对应视图，具体信息：{}");

    private final String errorCode;

    private final String userTip;

    ViewExceptionEnum(String errorCode, String userTip) {
        this.errorCode = errorCode;
        this.userTip = userTip;
    }

}
