using System;
namespace Avalonia.Data.Core.Plugins
{
///
/// An that represents an error.
///
public class PropertyError : IPropertyAccessor
{
private BindingNotification _error;
///
/// Initializes a new instance of the class.
///
/// The error to report.
public PropertyError(BindingNotification error)
{
_error = error;
}
///
public Type PropertyType => null;
///
public object Value => _error;
///
public void Dispose()
{
}
///
public bool SetValue(object value, BindingPriority priority)
{
return false;
}
public void Subscribe(Action