Just override Rescue() on one of your ViewModels to handle exceptions during an ICommand's execution.

        public override void Rescue(Exception exc)
        {
            //Handle your error here if desired
        }

I have been planning on setting up a global place to handle this as well, as it is kind of unsightly to do this in every ViewModel.

Last edited Aug 24, 2011 at 3:33 AM by jonathanpeppers, version 2

Comments

No comments yet.