Changeset 1806


Ignore:
Timestamp:
Aug 12, 2010, 12:48:04 AM (11 years ago)
Author:
kopal
Message:

execution exceptions will now be caught

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/Execution/ExecutionEngine.cs

    r1805 r1806  
    351351
    352352            //3. Execute the Plugin -> call the IPlugin.Execute()
    353             PluginModel.Plugin.Execute();
     353            try
     354            {
     355                PluginModel.Plugin.Execute();
     356            }
     357            catch (Exception ex)
     358            {
     359                this.PluginModel.WorkspaceModel.WorkspaceManagerEditor.GuiLogMessage("An error occured while executing  \"" + PluginModel.Name + "\": " + ex.Message, NotificationLevel.Error);
     360                this.PluginModel.State = PluginModelState.Error;
     361                this.PluginModel.GuiNeedsUpdate = true;
     362                return;
     363            }
    354364
    355365            //4. Count for the benchmark
     
    492502                catch (Exception ex)
    493503                {
    494                     this.PluginModel.WorkspaceModel.WorkspaceManagerEditor.GuiLogMessage("An error occured while setting value of connector \"" + connectorModel.Name + "\" of \"" + PluginModel + "\": " + ex.Message, NotificationLevel.Error);
     504                    this.PluginModel.WorkspaceModel.WorkspaceManagerEditor.GuiLogMessage("An error occured while setting value of connector \"" + connectorModel.Name + "\" of \"" + PluginModel.Name + "\": " + ex.Message, NotificationLevel.Error);
    495505                    this.PluginModel.State = PluginModelState.Error;
    496506                    this.PluginModel.GuiNeedsUpdate = true;
Note: See TracChangeset for help on using the changeset viewer.