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 OutOfDIYPostNameException extends BaseException  {

    private String msg;

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

        super("sync","500",
                new Object[] { "用户:"+m.getName(),
                        "packageId:"+m.getPackageId()},null);
        String s = "用户:"+m.getName()+"不在部门岗位筛选列表中";
        this.metaEmployee = m;
        this.msg = s;

    }

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

    public MetaEmployee getMetaNipponOrgRelation() {
        return metaEmployee;
    }
}
