package cn.stylefeng.team.form.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 FormDefinitionExceptionEnum implements AbstractExceptionEnum {

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

    JSON_NOT_EXISTED(RuleConstants.USER_OPERATION_ERROR_TYPE_CODE + "10002", "表单模型配置的json不存在");

    private final String errorCode;

    private final String userTip;

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

}