1 type derived from ConfigurationException
System.Configuration.ConfigurationManager (1)
System\Configuration\ConfigurationErrorsException.cs (1)
18
public class ConfigurationErrorsException :
ConfigurationException
78 references to ConfigurationException
Microsoft.Build (1)
Definition\ToolsetConfigurationReader.cs (1)
137
catch (
ConfigurationException
ex)
Microsoft.Build.Tasks.Core (4)
GenerateResource.cs (1)
3530
(e is
ConfigurationException
|| e is SecurityException)
ResGen.cs (1)
298
catch (System.Configuration.
ConfigurationException
)
WriteCodeFragment.cs (1)
154
(e is
ConfigurationException
|| e is SecurityException)
XamlTaskFactory\TaskGenerator.cs (1)
415
catch (
ConfigurationException
e)
System (1)
src\libraries\shims\System\ref\System.cs (1)
420
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Configuration.
ConfigurationException
))]
System.Configuration.ConfigurationManager (72)
System\Configuration\BaseConfigurationRecord.cs (11)
1403
catch (
ConfigurationException
ce)
1468
catch (
ConfigurationException
ce)
1937
catch (
ConfigurationException
ce)
1947
catch (
ConfigurationException
ce)
1968
catch (
ConfigurationException
ce)
2498
catch (
ConfigurationException
ce)
2526
catch (
ConfigurationException
ce)
2548
catch (
ConfigurationException
ce)
2611
catch (
ConfigurationException
ex)
2637
List<
ConfigurationException
> localErrors =
2928
catch (
ConfigurationException
e)
System\Configuration\ConfigurationElement.cs (2)
1568
catch (
ConfigurationException
e)
1773
catch (
ConfigurationException
)
System\Configuration\ConfigurationErrorsException.cs (15)
27
private readonly
ConfigurationException
[] _errors;
82
internal ConfigurationErrorsException(
ConfigurationException
e) :
86
internal ConfigurationErrorsException(ICollection<
ConfigurationException
> coll) :
91
_errors = new
ConfigurationException
[coll.Count];
97
this((
ConfigurationException
)(coll.Count > 0 ? coll[0] : null))
100
_errors = new
ConfigurationException
[coll.Count];
124
_errors = new
ConfigurationException
[count];
133
if ((currentExceptionType != typeof(
ConfigurationException
)) &&
137
_errors[i] = (
ConfigurationException
)info.GetValue(numPrefix + SerializationParamErrorData, currentExceptionType);
174
ConfigurationException
[] a = { e };
179
internal ICollection<
ConfigurationException
> ErrorsGeneric => (ICollection<
ConfigurationException
>)Errors;
192
private static
ConfigurationException
GetFirstException(ICollection<
ConfigurationException
> coll)
194
foreach (
ConfigurationException
e in coll) return e;
System\Configuration\ConfigurationSchemaErrors.cs (8)
13
private List<
ConfigurationException
> _errorsAll;
16
private List<
ConfigurationException
> _errorsGlobal;
22
private List<
ConfigurationException
> _errorsLocal;
32
internal void AddError(
ConfigurationException
ce, ExceptionAction action)
49
internal void SetSingleGlobalError(
ConfigurationException
ce)
78
internal List<
ConfigurationException
> RetrieveAndResetLocalErrors(bool keepLocalErrors)
80
List<
ConfigurationException
> list = _errorsLocal;
88
internal void AddSavedLocalErrors(ICollection<
ConfigurationException
> coll)
System\Configuration\ElementInformation.cs (4)
11
private
ConfigurationException
[] _errors;
68
private
ConfigurationException
[] GetReadOnlyErrorsList()
76
ConfigurationException
[] exceptionList = new
ConfigurationException
[arrayList.Count];
System\Configuration\ErrorsHelper.cs (11)
11
internal static int GetErrorCount(List<
ConfigurationException
> errors)
16
internal static bool GetHasErrors(List<
ConfigurationException
> errors)
21
internal static void AddError(ref List<
ConfigurationException
> errors,
ConfigurationException
e)
26
errors ??= new List<
ConfigurationException
>();
32
ICollection<
ConfigurationException
> col = ce.ErrorsGeneric;
38
internal static void AddErrors(ref List<
ConfigurationException
> errors, ICollection<
ConfigurationException
> coll)
46
foreach (
ConfigurationException
e in coll) AddError(ref errors, e);
49
internal static ConfigurationErrorsException GetErrorsException(List<
ConfigurationException
> errors)
57
internal static void ThrowOnErrors(List<
ConfigurationException
> errors)
System\Configuration\ExceptionUtil.cs (2)
54
ConfigurationException
deprecatedException = e as
ConfigurationException
;
System\Configuration\FactoryRecord.cs (4)
23
private List<
ConfigurationException
> _errors; // errors
39
ICollection<
ConfigurationException
> errors)
156
internal List<
ConfigurationException
> Errors => _errors;
256
internal void AddErrors(ICollection<
ConfigurationException
> coll)
System\Configuration\InvalidPropValue.cs (2)
9
internal InvalidPropValue(string value,
ConfigurationException
error)
15
internal
ConfigurationException
Error { get; }
System\Configuration\LocationSectionRecord.cs (5)
12
private List<
ConfigurationException
> _errors; // errors
14
internal LocationSectionRecord(SectionXmlInfo sectionXmlInfo, List<
ConfigurationException
> errors)
25
internal ICollection<
ConfigurationException
> Errors => _errors;
27
internal List<
ConfigurationException
> ErrorsList => _errors;
31
internal void AddError(
ConfigurationException
e)
System\Configuration\SectionInput.cs (3)
16
private readonly List<
ConfigurationException
> _errors;
21
internal SectionInput(SectionXmlInfo sectionXmlInfo, List<
ConfigurationException
> errors)
53
internal ICollection<
ConfigurationException
> Errors => _errors;
System\Configuration\SectionRecord.cs (2)
274
private List<
ConfigurationException
> GetAllErrors()
276
List<
ConfigurationException
> allErrors = null;
System\Configuration\TypeUtil.cs (1)
62
Assembly configurationAssembly = typeof(
ConfigurationException
).Assembly;
System\Configuration\XmlUtil.cs (2)
237
ConfigurationException
ex = new ConfigurationErrorsException(
313
ConfigurationException
ex = new ConfigurationErrorsException(