private string _FindException(OpenCbsCorporateExceptionEnum exception)
        {
            string returned = String.Empty;
            switch (exception)
            {
                case OpenCbsCorporateExceptionEnum.CodeIsEmpty:
                    returned = "OpenCbsCorporateExceptionCodeIsEmpty.Text";
                    break;

                case OpenCbsCorporateExceptionEnum.NameIsEmpty:
                    returned = "OpenCbsCorporateExceptionNameIsEmpty.Text";
                    break;
                case OpenCbsCorporateExceptionEnum.CityIsEmpty:
                    returned = "OpenCbsCorporateExceptionCityIsEmpty.Text";
                    break;
                case OpenCbsCorporateExceptionEnum.ProvinceIsEmpty:
                    returned = "OpenCbsCorporateExceptionProvinceIsEmpty.Text";
                    break;
                case OpenCbsCorporateExceptionEnum.DistrictIsEmpty:
                    returned = "OpenCbsCorporateExceptionDistrictIsEmpty.Text";
                    break;
                case OpenCbsCorporateExceptionEnum.EmployeeIsFalseFormat:
                    returned = "OpenCbsCorporateExceptionEmployeeIsFalseFormat.Text";
                    break;
                case OpenCbsCorporateExceptionEnum.VolunteerIsFalseFormat:
                    returned = "OpenCbsCorporateExceptionVolunteerIsFalseFormat.Text";
                    break;

                case OpenCbsCorporateExceptionEnum.BranchIsEmpty:
                    returned = "BranchIsEmpty";
                    break;
            }
            return returned;
        }
        private string _FindException(OpenCbsCorporateExceptionEnum exception)
        {
            string returned = String.Empty;

            switch (exception)
            {
            case OpenCbsCorporateExceptionEnum.CodeIsEmpty:
                returned = "OpenCbsCorporateExceptionCodeIsEmpty.Text";
                break;

            case OpenCbsCorporateExceptionEnum.NameIsEmpty:
                returned = "OpenCbsCorporateExceptionNameIsEmpty.Text";
                break;

            case OpenCbsCorporateExceptionEnum.CityIsEmpty:
                returned = "OpenCbsCorporateExceptionCityIsEmpty.Text";
                break;

            case OpenCbsCorporateExceptionEnum.ProvinceIsEmpty:
                returned = "OpenCbsCorporateExceptionProvinceIsEmpty.Text";
                break;

            case OpenCbsCorporateExceptionEnum.DistrictIsEmpty:
                returned = "OpenCbsCorporateExceptionDistrictIsEmpty.Text";
                break;

            case OpenCbsCorporateExceptionEnum.EmployeeIsFalseFormat:
                returned = "OpenCbsCorporateExceptionEmployeeIsFalseFormat.Text";
                break;

            case OpenCbsCorporateExceptionEnum.VolunteerIsFalseFormat:
                returned = "OpenCbsCorporateExceptionVolunteerIsFalseFormat.Text";
                break;

            case OpenCbsCorporateExceptionEnum.BranchIsEmpty:
                returned = "BranchIsEmpty";
                break;
            }
            return(returned);
        }
 public OpenCbsCorporateException(OpenCbsCorporateExceptionEnum exception)
 {
     _code = _FindException(exception);
 }
 public OpenCbsCorporateException(OpenCbsCorporateExceptionEnum exception)
 {
     _code = _FindException(exception);
 }