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.WorkflowConstants;
import lombok.Getter;

@Getter
public enum WorkflowExceptionEnum implements AbstractExceptionEnum {

    CANT_FIND_WORKFLOW(RuleConstants.BUSINESS_ERROR_TYPE_CODE + WorkflowConstants.WORKFLOW_EXCEPTION_STEP_CODE + "01",
            "查询不到对应智慧工作流，具体信息：{}"),

    CANT_FIND_APPLICANT(RuleConstants.BUSINESS_ERROR_TYPE_CODE + WorkflowConstants.WORKFLOW_EXCEPTION_STEP_CODE + "02",
            "无法获取到流程发起人信息，请填充流程发起人");

    private final String errorCode;

    private final String userTip;

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

}
