package cn.stylefeng.workflow.api.exception.enums;

import cn.stylefeng.roses.kernel.rule.constants.RuleConstants;
import cn.stylefeng.roses.kernel.rule.exception.AbstractExceptionEnum;
import cn.stylefeng.workflow.api.constants.VariableConstants;
import lombok.Getter;

@Getter
public enum VariableExceptionEnum implements AbstractExceptionEnum {

    CANT_FIND_VARIABLE(RuleConstants.BUSINESS_ERROR_TYPE_CODE + VariableConstants.VARIABLE_EXCEPTION_STEP_CODE + "01", "查询不到对应流程变量，具体信息：{}");

    private final String errorCode;

    private final String userTip;

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

}
