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