package cn.stylefeng.workflow.design.modular.enums;

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

@Getter
public enum DefinitionExceptionEnum implements AbstractExceptionEnum {

    DEFINITION_NOT_EXISTED(RuleConstants.USER_OPERATION_ERROR_TYPE_CODE + "10001", "流程定义，查询结果不存在"),

    CANT_FIND_FORM_CONFIG(RuleConstants.USER_OPERATION_ERROR_TYPE_CODE + "10002", "无法获取到表单配置信息");

    private final String errorCode;

    private final String userTip;

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

}