package com.dgtly.sync.exception;

import com.dgtly.common.exception.base.BaseException;
import com.dgtly.sync.domain.MetaEmployee;
import com.dgtly.sync.domain.MetaEmployeeDiy;

public class NotFountOrgCodeException extends BaseException  {

    private String msg;

    /**
     * 用户信息
     */
    private MetaEmployee metaEmployee;
    public NotFountOrgCodeException(MetaEmployee m) {

        super("sync","500",
                new Object[] { "用户:"+m.getName(),
                        "packageId:"+m.getPackageId()},null);
        String s = "用户:"+m.getName()+"未查找到相应的组织code";
        this.metaEmployee = m;
        this.msg = s;

    }

    @Override
    public String getMessage()
    {
        return msg;
    }

    public MetaEmployee getMetaNipponOrgRelation() {
        return metaEmployee;
    }
}
