package cn.stylefeng.workflow.instance.modular.manage.enums;

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

@Getter
public enum RuntimeInstanceExceptionEnum implements AbstractExceptionEnum {

    RUNTIME_INSTANCE_NOT_EXISTED(RuleConstants.USER_OPERATION_ERROR_TYPE_CODE + "10001", "查询结果不存在"),

    PREDICT_NULL_ERROR(RuleConstants.USER_OPERATION_ERROR_TYPE_CODE + "10002", "无法进行流程预测，请检查参数");

    private final String errorCode;

    private final String userTip;

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

}