internal void ThrowIfErrors(bool ignoreLocal) {
if (HasErrors(ignoreLocal)) {
if (HasGlobalErrors) {
// Throw just the global errors, as they invalidate
// all other config file parsing.
throw new ConfigurationErrorsException(_errorsGlobal);
}
else {
// Throw all errors no matter what
throw new ConfigurationErrorsException(_errorsAll);
}
}
}