WrapAsConfigException() 정적인 개인적인 메소드

static private WrapAsConfigException ( string outerMessage, Exception e, IConfigErrorInfo errorInfo ) : ConfigurationErrorsException
outerMessage string
e System.Exception
errorInfo IConfigErrorInfo
리턴 ConfigurationErrorsException
        public override XmlNode ProcessRawXml(XmlNode rawXml)
        {
            XmlNode processedXml       = rawXml;
            String  currentBuilderName = null;

            try {
                foreach (ConfigurationBuilder b in _builders)
                {
                    currentBuilderName = b.Name;
                    processedXml       = b.ProcessRawXml(processedXml);
                }
                return(processedXml);
            }
            catch (Exception e) {
                throw ExceptionUtil.WrapAsConfigException(SR.GetString(SR.ConfigBuilder_processXml_error_short,
                                                                       currentBuilderName), e, null);
            }
        }
        public override ConfigurationSection ProcessConfigurationSection(ConfigurationSection configSection)
        {
            ConfigurationSection processedConfigSection = configSection;
            String currentBuilderName = null;

            try {
                foreach (ConfigurationBuilder b in _builders)
                {
                    currentBuilderName     = b.Name;
                    processedConfigSection = b.ProcessConfigurationSection(processedConfigSection);
                }
                return(processedConfigSection);
            }
            catch (Exception e) {
                throw ExceptionUtil.WrapAsConfigException(SR.GetString(SR.ConfigBuilder_processSection_error,
                                                                       currentBuilderName, configSection.SectionInformation.Name), e, null);
            }
        }
        private ConfigurationBuilder CreateAndInitializeBuilderWithAssert(Type t, ProviderSettings ps)
        {
            ConfigurationBuilder builder     = (ConfigurationBuilder)TypeUtil.CreateInstanceWithReflectionPermission(t);
            NameValueCollection  pars        = ps.Parameters;
            NameValueCollection  cloneParams = new NameValueCollection(pars.Count);

            foreach (string key in pars)
            {
                cloneParams[key] = pars[key];
            }

            try {
                builder.Initialize(ps.Name, cloneParams);
            } catch (Exception e) {
                throw ExceptionUtil.WrapAsConfigException(SR.GetString(SR.ConfigBuilder_init_error, ps.Name), e, null);
            }
            return(builder);
        }