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);
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 4
0
  public OpenCbsFundingLineException(OpenCbsFundingLineExceptionEnum exception)
 {
     _code = _FindException(exception);
 }