53 references to ExceptionUtil
System.Configuration.ConfigurationManager (53)
System\Configuration\BaseConfigurationRecord.cs (11)
525ExceptionUtil.WrapAsConfigException(SR.Config_error_loading_XML_file, e, streamname, 0), 594ExceptionUtil.WrapAsConfigException(SR.Config_error_loading_XML_file, e, 600ExceptionUtil.WrapAsConfigException(SR.Config_error_loading_XML_file, e, 738ExceptionUtil.WrapAsConfigException(SR.Config_error_loading_XML_file, e, 1355throw ExceptionUtil.WrapAsConfigException( 1588throw ExceptionUtil.WrapAsConfigException(SR.Config_error_loading_XML_file, e, filename, 1637throw ExceptionUtil.WrapAsConfigException( 1739throw ExceptionUtil.WrapAsConfigException( 2605throw ExceptionUtil.WrapAsConfigException(SR.Config_source_invalid, e, xmlUtil); 3041throw ExceptionUtil.WrapAsConfigException(SR.Config_tag_name_invalid, e, errorInfo); 3376throw ExceptionUtil.UnexpectedError("BaseConfigurationRecord::hlClearResultRecursive");
System\Configuration\ClientConfigPaths.cs (1)
49throw ExceptionUtil.ParameterInvalid(nameof(exePath));
System\Configuration\ClientConfigurationHost.cs (11)
145throw ExceptionUtil.UnexpectedError("ClientConfigurationHost::Init"); 172throw ExceptionUtil.UnexpectedError("ClientConfigurationHost::Init"); 313if (!IsFile(streamName)) throw ExceptionUtil.UnexpectedError($"ClientConfigurationHost::OpenStreamForWrite '{streamName}' '{templateStreamName}'"); 321if (!IsFile(streamName)) throw ExceptionUtil.UnexpectedError("ClientConfigurationHost::Delete"); 348throw ExceptionUtil.UnexpectedError("ClientConfigurationHost::IsDefinitionAllowed"); 370_ => ExceptionUtil.UnexpectedError("ClientConfigurationHost::VerifyDefinitionAllowed"), 437throw ExceptionUtil.ParameterInvalid(nameof(userLevel)); 444throw ExceptionUtil.ParameterNullOrEmpty(nameof(fileMap) + "." + nameof(fileMap.MachineConfigFilename)); 453throw ExceptionUtil.ParameterNullOrEmpty(nameof(fileMap) + "." + nameof(exeFileMap.ExeConfigFilename)); 457throw ExceptionUtil.ParameterNullOrEmpty(nameof(fileMap) + "." + nameof(exeFileMap.RoamingUserConfigFilename)); 461throw ExceptionUtil.ParameterNullOrEmpty(nameof(fileMap) + "." + nameof(exeFileMap.LocalUserConfigFilename));
System\Configuration\Configuration.cs (3)
58throw ExceptionUtil.UnexpectedError("Configuration::ctor"); 61throw ExceptionUtil.UnexpectedError("Configuration::ctor"); 206if (string.IsNullOrEmpty(filename)) throw ExceptionUtil.ParameterNullOrEmpty(nameof(filename));
System\Configuration\ConfigurationErrorsException.cs (1)
135throw ExceptionUtil.UnexpectedError("ConfigurationErrorsException");
System\Configuration\ConfigurationSectionCollection.cs (1)
88throw ExceptionUtil.ParameterNullOrEmpty(nameof(name));
System\Configuration\ConfigurationSectionGroupCollection.cs (1)
92throw ExceptionUtil.ParameterNullOrEmpty(nameof(name));
System\Configuration\Internal\InternalConfigHost.cs (10)
44throw ExceptionUtil.UnexpectedError("IInternalConfigHost.GetStreamName"); 104throw ExceptionUtil.UnexpectedError("IInternalConfigHost.StartMonitoringStreamForChanges"); 109throw ExceptionUtil.UnexpectedError("IInternalConfigHost.StopMonitoringStreamForChanges"); 130throw ExceptionUtil.UnexpectedError("IInternalConfigHost.IsAboveApplication"); 135throw ExceptionUtil.UnexpectedError("IInternalConfigHost.GetConfigPathFromLocationSubPath"); 140throw ExceptionUtil.UnexpectedError("IInternalConfigHost.IsLocationApplicable"); 155throw ExceptionUtil.UnexpectedError("IInternalConfigHost.CreateDeprecatedConfigContext"); 160throw ExceptionUtil.UnexpectedError("IInternalConfigHost.CreateConfigurationContext"); 194if (!Path.IsPathRooted(streamName)) throw ExceptionUtil.ParameterInvalid(nameof(streamName)); 225throw ExceptionUtil.UnexpectedError("InternalConfigHost::StaticOpenStreamForRead");
System\Configuration\Internal\InternalConfigRoot.cs (6)
96if (!ConfigPathUtility.IsValid(configPath)) throw ExceptionUtil.ParameterInvalid(nameof(configPath)); 172throw ExceptionUtil.UnexpectedError( 176throw ExceptionUtil.UnexpectedError( 195throw ExceptionUtil.UnexpectedError( 199throw ExceptionUtil.UnexpectedError( 235if (!ConfigPathUtility.IsValid(configPath)) throw ExceptionUtil.ParameterInvalid(nameof(configPath));
System\Configuration\MgmtConfigurationRecord.cs (5)
243if (!factoryRecord.IsGroup) throw ExceptionUtil.ParameterInvalid("sectionGroupName"); 824if (configSectionGroup == null) throw ExceptionUtil.ParameterInvalid(nameof(name)); 1096throw ExceptionUtil.WrapAsConfigException(SR.Config_error_loading_XML_file, e, 1264_ => throw ExceptionUtil.PropertyInvalid("AllowExeDefinition"), 3049throw ExceptionUtil.WrapAsConfigException(SR.Config_error_loading_XML_file, e, configSourceStreamName, 0);
System\Configuration\RegexStringValidator.cs (1)
15if (string.IsNullOrEmpty(regex)) throw ExceptionUtil.ParameterNullOrEmpty(nameof(regex));
System\Configuration\SectionInformation.cs (1)
364if (string.IsNullOrEmpty(value)) throw ExceptionUtil.PropertyNullOrEmpty(nameof(Type));
System\Configuration\UrlPath.cs (1)
130throw ExceptionUtil.ParameterInvalid(nameof(fileName));