private string _FindException(OpenCbsFundingLineExceptionEnum exception) { string returned = String.Empty; switch (exception) { case OpenCbsFundingLineExceptionEnum.CodeIsEmpty: returned = "OpenCbsFundingLineExceptionCodeIsEmpty.Text"; break; case OpenCbsFundingLineExceptionEnum.NameIsEmpty: returned = "OpenCbsFundingLineExceptionNameIsEmpty.Text"; break; case OpenCbsFundingLineExceptionEnum.BeginDateGreaterEndDate: returned = "OpenCbsFundingLineExceptionBeginDateGreaterEndDate.Text"; break; case OpenCbsFundingLineExceptionEnum.BadFundingLineID: returned = "OpenCbsFundingLineExceptionBadFundingLineId.Text"; break; case OpenCbsFundingLineExceptionEnum.FundingLineNameExists: returned = "OpenCbsFundingLineExceptionFundingLineNameExists.Text"; break; case OpenCbsFundingLineExceptionEnum.CurrencyIsEmpty: returned = "CurrencyIsEmpty.Text"; break; } return(returned); }
private string _FindException(OpenCbsFundingLineExceptionEnum exception) { string returned = String.Empty; switch (exception) { case OpenCbsFundingLineExceptionEnum.CodeIsEmpty: returned = "OpenCbsFundingLineExceptionCodeIsEmpty.Text"; break; case OpenCbsFundingLineExceptionEnum.NameIsEmpty: returned = "OpenCbsFundingLineExceptionNameIsEmpty.Text"; break; case OpenCbsFundingLineExceptionEnum.BeginDateGreaterEndDate: returned = "OpenCbsFundingLineExceptionBeginDateGreaterEndDate.Text"; break; case OpenCbsFundingLineExceptionEnum.BadFundingLineID: returned = "OpenCbsFundingLineExceptionBadFundingLineId.Text"; break; case OpenCbsFundingLineExceptionEnum.FundingLineNameExists: returned = "OpenCbsFundingLineExceptionFundingLineNameExists.Text"; break; case OpenCbsFundingLineExceptionEnum.CurrencyIsEmpty: returned = "CurrencyIsEmpty.Text"; break; } return returned; }
public OpenCbsFundingLineException(OpenCbsFundingLineExceptionEnum exception) { _code = _FindException(exception); }
public OpenCbsFundingLineException(OpenCbsFundingLineExceptionEnum exception) { _code = _FindException(exception); }