using System;
using System.Windows.Data;

namespace Valg.EVA.Skanning.UserInterfaceElements.Binding
{
    
    
    
    
    
    
    
    
    public static class ExceptionRethrower
    {
        private static readonly UpdateSourceExceptionFilterCallback callback;

        static ExceptionRethrower()
        {
            callback = Callback;
        }

        private static object Callback(object bindExpression, Exception exception)
        {
            throw exception;
        }

        public static UpdateSourceExceptionFilterCallback Rethrow
        {
            get { return callback; }
        }
    }
}
