示例#1
0
 /// <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);
 }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <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);
 }