Bloom.Edit.EditingView.ExecuteCommandSafely C# (CSharp) Method

ExecuteCommandSafely() private method

private ExecuteCommandSafely ( Command cmdObject ) : void
cmdObject Command
return void
        private void ExecuteCommandSafely(Command cmdObject)
        {
            try
            {
                cmdObject.Execute();
            }
            catch(Exception error)
            {
                ErrorReport.NotifyUserOfProblem(error,
                    LocalizationManager.GetString("Errors.SomethingWentWrong", "Sorry, something went wrong."));
            }
        }