internal void ThrowOnErrors() { if (HasErrors) { throw new ConfigurationErrorsException(GetAllErrors()); } } }