// // Add a configuration Error. // internal void AddError(ConfigurationException ce, ExceptionAction action) { switch (action) { case ExceptionAction.Global: ErrorsHelper.AddError(ref _errorsAll, ce); ErrorsHelper.AddError(ref _errorsGlobal, ce); break; case ExceptionAction.NonSpecific: ErrorsHelper.AddError(ref _errorsAll, ce); break; case ExceptionAction.Local: ErrorsHelper.AddError(ref _errorsLocal, ce); break; } }
// // Error handling. // private List <ConfigurationException> GetAllErrors() { List <ConfigurationException> allErrors = null; ErrorsHelper.AddErrors(ref allErrors, _errors); if (HasLocationInputs) { foreach (SectionInput input in LocationInputs) { ErrorsHelper.AddErrors(ref allErrors, input.Errors); } } if (HasFileInput) { ErrorsHelper.AddErrors(ref allErrors, FileInput.Errors); } return(allErrors); }
private List <ConfigurationException> GetAllErrors() { List <ConfigurationException> errors = null; if (this.HasLocationInputs) { foreach (SectionInput input in this.LocationInputs) { ErrorsHelper.AddErrors(ref errors, input.Errors); } } if (this.HasIndirectLocationInputs) { foreach (SectionInput input2 in this.IndirectLocationInputs) { ErrorsHelper.AddErrors(ref errors, input2.Errors); } } if (this.HasFileInput) { ErrorsHelper.AddErrors(ref errors, this.FileInput.Errors); } return(errors); }
internal void AddErrors(ICollection <ConfigurationException> coll) { ErrorsHelper.AddErrors(ref this._errors, coll); }
internal void ThrowOnErrors() { ErrorsHelper.ThrowOnErrors(this._errors); }
internal void AddSavedLocalErrors(ICollection <ConfigurationException> coll) { ErrorsHelper.AddErrors(ref _errorsAll, coll); }
internal void AddError(ConfigurationException e) { ErrorsHelper.AddError(ref _errors, e); }