/// <summary> /// Called when a priority level encounters an error. /// </summary> /// <param name="level">The priority level of the changed entry.</param> /// <param name="error">The binding error.</param> public void LevelError(PriorityLevel level, BindingError error) { Logger.Log( LogEventLevel.Error, LogArea.Binding, _owner, "Error binding to {Target}.{Property}: {Message}", _owner, Property, error.Exception.Message); }
/// <summary> /// Initializes a new instance of the <see cref="PropertyError"/> class. /// </summary> /// <param name="error">The error to report.</param> public PropertyError(BindingError error) { _error = error; }
/// <summary> /// Invoked when an entry in <see cref="Bindings"/> encounters a recoverable error. /// </summary> /// <param name="entry">The entry that completed.</param> /// <param name="error">The error.</param> public void Error(PriorityBindingEntry entry, BindingError error) { _owner.LevelError(this, error); }