I am using the MVVM pattern for a WPF application. In several places I bind commands to input elements in the views as in the following XAML:
<Button Command="{Binding TheClickCommand}" >Click</>
What is the best practice for handling exceptions thrown when the command is executed in my viewmodel - i.e. what is the best way to inform the view that something is wrong? Can I use the IDataErrorInfo pattern or is there some other built-in pattern for this scenario?