private static string FindException(OpenCbsSavingProductExceptionEnum exceptionId)
        {
            string returned = String.Empty;
            switch (exceptionId)
            {
                case OpenCbsSavingProductExceptionEnum.NameIsEmpty:
                    returned = "SavingProductNameIsEmpty.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.DuplicateProductName:
                    returned = "SavingProductDuplicateProductName.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.DuplicateProductCode:
                    returned = "SavingProductDuplicateProductCode.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.BalanceIsInvalid:
                    returned = "SavingProductBalanceIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InitialAmountIsInvalid:
                    returned = "SavingProductInitialAmountIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.WithdrawAmountIsInvalid:
                    returned = "SavingProductWithdrawAmountIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.DepositAmountIsInvalid:
                    returned = "SavingProductDepositAmountIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterestRateMinMaxIsInvalid:
                    returned = "SavingProductInterestRateMinMaxIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.DepositMinAmountIsInvalid:
                    returned = "SavingProductDepositMinAmountIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterestRateIsInvalid:
                    returned = "SavingProductInterestRateIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterestRateMinIsInvalid:
                    returned = "SavingProductInterestRateMinMaxIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.WithdrawMinAmountIsInvalid:
                    returned = "SavingProductWithdrawMinAmountIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InitialAmountMinIsInvalid:
                    returned = "SavingProductInitialAmountMinIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InitialAmountMinMaxIsInvalid:
                    returned = "SavingProductInitialAmountMinMaxIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InitialAmountMaxNotInBalance:
                    returned = "SavingProductInitialAmountMaxNotInBalance.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InitialAmountMinNotInBalance:
                    returned = "SavingProductInitialAmountMinNotInBalance.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterestsFrequencyIsInvalid:
                    returned = "SavingProductInterestsFrequencyIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterestsBaseIsInvalid:
                    returned = "SavingProductInterestsBaseIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.CurrencyIsEmpty:
                    returned = "CurrencyIsEmptyForSavingProduct.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.ClientTypeIsInvalid:
                    returned = "ClientTypeIsEmpty.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.CalculAmountBaseIsNull:
                    returned = "SavingProductCalculAmountBaseIsNull.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterestBaseIncompatibleFrequency:
                    returned = "SavingProductInterestBaseIncompatibleFrequency.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.EntryFeesMinMaxIsInvalid:
                    returned = "SavingProductEntryFeesMinMaxIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.EntryFeesIsInvalid:
                    returned = "SavingProductEntryFeesIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.NumberPeriodIsInvalid:
                    returned = "SavingProductNumberPeriodIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.NumberPeriodMinIsInvalid:
                    returned = "SavingProductNumberPeriodMinIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.NumberPeriodMinMaxIsInvalid:
                    returned = "SavingProductNumberPeriodMinMaxIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.WithdrawFeesTypeEmpty:
                    returned = "SavingProductWithdrawFeesTypeEmpty.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.FlatWithdrawFeesIsInvalid:
                    returned = "SavingProductFlatWithdrawFeesIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.FlatWithdrawFeesMinIsInvalid:
                    returned = "SavingProductFlatWithdrawFeesMinIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.FlatWithdrawFeesMinMaxIsInvalid:
                    returned = "SavingProductFlatWithdrawFeesMinMaxIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.RateWithdrawFeesIsInvalid:
                    returned = "SavingProductRateWithdrawFeesIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.RateWithdrawFeesMinIsInvalid:
                    returned = "SavingProductRateWithdrawFeesMinIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.RateWithdrawFeesMinMaxIsInvalid:
                    returned = "SavingProductRateWithdrawFeesMinMaxIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.TransferAmountIsInvalid:
                    returned = "SavingProductTransferAmountIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.TransferAmountMinIsInvalid:
                    returned = "SavingProductTransferAmountMinIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.WithdrawalFeesMinMaxIsInvalid:
                    returned = "SavingProductWithdrawalFeesMinMaxIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.WithdrawalFeesIsInvalid:
                    returned = "SavingProductWithdrawalFeesIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.WithdrawalFeesMinIsInvalid:
                    returned = "SavingProductWithdrawalFeesMinIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.CodeIsEmpty:
                    returned = "SavingProductCodeIsEmpty.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.TransferFeesTypeEmpty:
                    returned = "SavingProductTransferFeesTypeEmpty.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.FlatTransferFeesIsInvalid:
                    returned = "SavingProductFlatTransferFeesIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.FlatTransferFeesMinIsInvalid:
                    returned = "SavingProductFlatTransferFeesMinIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.FlatTransferFeesMinMaxIsInvalid:
                    returned = "SavingProductFlatTransferFeesMinMaxIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.RateTransferFeesIsInvalid:
                    returned = "SavingProductRateTransferFeesIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.RateTransferFeesMinIsInvalid:
                    returned = "SavingProductRateTransferFeesMinIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.RateTransferFeesMinMaxIsInvalid:
                    returned = "SavingProductRateTransferFeesMinMaxIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterBranchFlatTransferFeesIsInvalid:
                    returned = "SavingProductInterBranchFlatTransferFeesIsInvalid";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterBranchFlatTransferFeesMinIsInvalid:
                    returned = "SavingProductInterBranchFlatTransferFeesMinIsInvalid";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterBranchFlatTransferFeesMinMaxIsInvalid:
                    returned = "SavingProductInterBranchFlatTransferFeesMinMaxIsInvalid";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterBranchRateTransferFeesIsInvalid:
                    returned = "SavingProductInterBranchRateTransferFeesIsInvalid";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterBranchRateTransferFeesMinIsInvalid:
                    returned = "SavingProductInterBranchRateTransferFeesMinIsInvalid";
                    break;

                case OpenCbsSavingProductExceptionEnum.InterBranchRateTransferFeesMinMaxIsInvalid:
                    returned = "SavingProductInterBranchRateTransferFeesMinMaxIsInvalid";
                    break;

                case OpenCbsSavingProductExceptionEnum.LoanAmountIsInvalid:
                    returned = "SavingProductLoanAmountIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.LoanAmountMinIsInvalid:
                    returned = "SavingProductLoanAmountMinIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.LoanAmountMinMaxIsInvalid:
                    returned = "SavingProductLoanAmountMinMaxIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.DepositFeesIsInvalid:
                    returned = "SavingProductDepositFeesIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.DepositFeesMinIsInvalid:
                    returned = "SavingProductDepositFeesMinIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.CloseFeesIsInvalid:
                    returned = "SavingProductCloseFeesIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.CloseFeesMinIsInvalid:
                    returned = "SavingProductCloseFeesMinIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.ManagementFeesIsInvalid:
                    returned = "SavingProductManagementFeesIsInvalid.Text";
                    break;

                case OpenCbsSavingProductExceptionEnum.ManagementFeesMinIsInvalid:
                    returned = "SavingProductManagementFeesMinIsInvalid.Text";
                    break;
                case OpenCbsSavingProductExceptionEnum.PeriodicityIsEmpty:
                    returned = "SavingProductPeriodicityIsEmpty.Text";
                    break;
                case OpenCbsSavingProductExceptionEnum.OverdraftFeesIsInvalid:
                    returned = "OverdraftFeesIsInvalid.Text";
                    break;
                case OpenCbsSavingProductExceptionEnum.AgioFeesIsInvalid:
                    returned = "AgioFeesIsInvalid.Text";
                    break;
                case OpenCbsSavingProductExceptionEnum.ChequeDepositIsInvalid:
                    returned = "ChequeDepositIsInvalid";
                    break;
                case OpenCbsSavingProductExceptionEnum.ChequeDepositFeesIsInvalid:
                    returned = "ChequeDepositFeesIsInvalid";
                    break;
                case OpenCbsSavingProductExceptionEnum.ReopenFeesIsInvalid:
                    returned = "ReopenFeesIsInvalid";
                    break;
                case OpenCbsSavingProductExceptionEnum.ReopenFeesMinIsInvalid:
                    returned = "ReopenFeesMinIsInvalid";
                    break;
                case OpenCbsSavingProductExceptionEnum.PostingFrequencyIsInvalid:
                    returned = "PostingFrequencyIsInvalid.Text";
                    break;
                case OpenCbsSavingProductExceptionEnum.PeriodicityIsNotSet:
                    returned = "PeriodicityIsNotSet.Text";
                    break;
            }
            return returned;
        }
 protected OpenCbsSavingProductException(SerializationInfo info, StreamingContext context, List<string> options)
     : base(info, context)
 {
     _code = (OpenCbsSavingProductExceptionEnum)info.GetInt32("Code");
     AdditionalOptions = options;
 }
 public OpenCbsSavingProductException(OpenCbsSavingProductExceptionEnum exceptionCode)
 {
     _code = exceptionCode;
     _message = FindException(exceptionCode);
 }
 protected OpenCbsSavingProductException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _code = (OpenCbsSavingProductExceptionEnum)info.GetInt32("Code");
 }
Example #5
0
        private static string FindException(OpenCbsSavingProductExceptionEnum exceptionId)
        {
            string returned = String.Empty;

            switch (exceptionId)
            {
            case OpenCbsSavingProductExceptionEnum.NameIsEmpty:
                returned = "SavingProductNameIsEmpty.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.DuplicateProductName:
                returned = "SavingProductDuplicateProductName.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.DuplicateProductCode:
                returned = "SavingProductDuplicateProductCode.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.BalanceIsInvalid:
                returned = "SavingProductBalanceIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InitialAmountIsInvalid:
                returned = "SavingProductInitialAmountIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.WithdrawAmountIsInvalid:
                returned = "SavingProductWithdrawAmountIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.DepositAmountIsInvalid:
                returned = "SavingProductDepositAmountIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InterestRateMinMaxIsInvalid:
                returned = "SavingProductInterestRateMinMaxIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.DepositMinAmountIsInvalid:
                returned = "SavingProductDepositMinAmountIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InterestRateIsInvalid:
                returned = "SavingProductInterestRateIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InterestRateMinIsInvalid:
                returned = "SavingProductInterestRateMinMaxIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.WithdrawMinAmountIsInvalid:
                returned = "SavingProductWithdrawMinAmountIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InitialAmountMinIsInvalid:
                returned = "SavingProductInitialAmountMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InitialAmountMinMaxIsInvalid:
                returned = "SavingProductInitialAmountMinMaxIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InitialAmountMaxNotInBalance:
                returned = "SavingProductInitialAmountMaxNotInBalance.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InitialAmountMinNotInBalance:
                returned = "SavingProductInitialAmountMinNotInBalance.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InterestsFrequencyIsInvalid:
                returned = "SavingProductInterestsFrequencyIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InterestsBaseIsInvalid:
                returned = "SavingProductInterestsBaseIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.CurrencyIsEmpty:
                returned = "CurrencyIsEmptyForSavingProduct.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.ClientTypeIsInvalid:
                returned = "ClientTypeIsEmpty.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.CalculAmountBaseIsNull:
                returned = "SavingProductCalculAmountBaseIsNull.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InterestBaseIncompatibleFrequency:
                returned = "SavingProductInterestBaseIncompatibleFrequency.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.EntryFeesMinMaxIsInvalid:
                returned = "SavingProductEntryFeesMinMaxIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.EntryFeesIsInvalid:
                returned = "SavingProductEntryFeesIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.NumberPeriodIsInvalid:
                returned = "SavingProductNumberPeriodIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.NumberPeriodMinIsInvalid:
                returned = "SavingProductNumberPeriodMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.NumberPeriodMinMaxIsInvalid:
                returned = "SavingProductNumberPeriodMinMaxIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.WithdrawFeesTypeEmpty:
                returned = "SavingProductWithdrawFeesTypeEmpty.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.FlatWithdrawFeesIsInvalid:
                returned = "SavingProductFlatWithdrawFeesIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.FlatWithdrawFeesMinIsInvalid:
                returned = "SavingProductFlatWithdrawFeesMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.FlatWithdrawFeesMinMaxIsInvalid:
                returned = "SavingProductFlatWithdrawFeesMinMaxIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.RateWithdrawFeesIsInvalid:
                returned = "SavingProductRateWithdrawFeesIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.RateWithdrawFeesMinIsInvalid:
                returned = "SavingProductRateWithdrawFeesMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.RateWithdrawFeesMinMaxIsInvalid:
                returned = "SavingProductRateWithdrawFeesMinMaxIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.TransferAmountIsInvalid:
                returned = "SavingProductTransferAmountIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.TransferAmountMinIsInvalid:
                returned = "SavingProductTransferAmountMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.WithdrawalFeesMinMaxIsInvalid:
                returned = "SavingProductWithdrawalFeesMinMaxIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.WithdrawalFeesIsInvalid:
                returned = "SavingProductWithdrawalFeesIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.WithdrawalFeesMinIsInvalid:
                returned = "SavingProductWithdrawalFeesMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.CodeIsEmpty:
                returned = "SavingProductCodeIsEmpty.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.TransferFeesTypeEmpty:
                returned = "SavingProductTransferFeesTypeEmpty.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.FlatTransferFeesIsInvalid:
                returned = "SavingProductFlatTransferFeesIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.FlatTransferFeesMinIsInvalid:
                returned = "SavingProductFlatTransferFeesMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.FlatTransferFeesMinMaxIsInvalid:
                returned = "SavingProductFlatTransferFeesMinMaxIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.RateTransferFeesIsInvalid:
                returned = "SavingProductRateTransferFeesIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.RateTransferFeesMinIsInvalid:
                returned = "SavingProductRateTransferFeesMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.RateTransferFeesMinMaxIsInvalid:
                returned = "SavingProductRateTransferFeesMinMaxIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.InterBranchFlatTransferFeesIsInvalid:
                returned = "SavingProductInterBranchFlatTransferFeesIsInvalid";
                break;

            case OpenCbsSavingProductExceptionEnum.InterBranchFlatTransferFeesMinIsInvalid:
                returned = "SavingProductInterBranchFlatTransferFeesMinIsInvalid";
                break;

            case OpenCbsSavingProductExceptionEnum.InterBranchFlatTransferFeesMinMaxIsInvalid:
                returned = "SavingProductInterBranchFlatTransferFeesMinMaxIsInvalid";
                break;

            case OpenCbsSavingProductExceptionEnum.InterBranchRateTransferFeesIsInvalid:
                returned = "SavingProductInterBranchRateTransferFeesIsInvalid";
                break;

            case OpenCbsSavingProductExceptionEnum.InterBranchRateTransferFeesMinIsInvalid:
                returned = "SavingProductInterBranchRateTransferFeesMinIsInvalid";
                break;

            case OpenCbsSavingProductExceptionEnum.InterBranchRateTransferFeesMinMaxIsInvalid:
                returned = "SavingProductInterBranchRateTransferFeesMinMaxIsInvalid";
                break;

            case OpenCbsSavingProductExceptionEnum.LoanAmountIsInvalid:
                returned = "SavingProductLoanAmountIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.LoanAmountMinIsInvalid:
                returned = "SavingProductLoanAmountMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.LoanAmountMinMaxIsInvalid:
                returned = "SavingProductLoanAmountMinMaxIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.DepositFeesIsInvalid:
                returned = "SavingProductDepositFeesIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.DepositFeesMinIsInvalid:
                returned = "SavingProductDepositFeesMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.CloseFeesIsInvalid:
                returned = "SavingProductCloseFeesIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.CloseFeesMinIsInvalid:
                returned = "SavingProductCloseFeesMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.ManagementFeesIsInvalid:
                returned = "SavingProductManagementFeesIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.ManagementFeesMinIsInvalid:
                returned = "SavingProductManagementFeesMinIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.PeriodicityIsEmpty:
                returned = "SavingProductPeriodicityIsEmpty.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.OverdraftFeesIsInvalid:
                returned = "OverdraftFeesIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.AgioFeesIsInvalid:
                returned = "AgioFeesIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.ChequeDepositIsInvalid:
                returned = "ChequeDepositIsInvalid";
                break;

            case OpenCbsSavingProductExceptionEnum.ChequeDepositFeesIsInvalid:
                returned = "ChequeDepositFeesIsInvalid";
                break;

            case OpenCbsSavingProductExceptionEnum.ReopenFeesIsInvalid:
                returned = "ReopenFeesIsInvalid";
                break;

            case OpenCbsSavingProductExceptionEnum.ReopenFeesMinIsInvalid:
                returned = "ReopenFeesMinIsInvalid";
                break;

            case OpenCbsSavingProductExceptionEnum.PostingFrequencyIsInvalid:
                returned = "PostingFrequencyIsInvalid.Text";
                break;

            case OpenCbsSavingProductExceptionEnum.PeriodicityIsNotSet:
                returned = "PeriodicityIsNotSet.Text";
                break;
            }
            return(returned);
        }
Example #6
0
 public OpenCbsSavingProductException(OpenCbsSavingProductExceptionEnum exceptionCode)
 {
     _code    = exceptionCode;
     _message = FindException(exceptionCode);
 }
Example #7
0
 protected OpenCbsSavingProductException(SerializationInfo info, StreamingContext context, List <string> options)
     : base(info, context)
 {
     _code             = (OpenCbsSavingProductExceptionEnum)info.GetInt32("Code");
     AdditionalOptions = options;
 }
Example #8
0
 protected OpenCbsSavingProductException(SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     _code = (OpenCbsSavingProductExceptionEnum)info.GetInt32("Code");
 }