protected override void OnError(ErrorMethodKind methodKind, Exception exception) { if (null == GeneralError) { GeneralError = ""; } GeneralError += methodKind.ToString() + Environment.NewLine + exception.GetType().Name + Environment.NewLine + exception.Message; }
/* * At last you see some options for troubleshooting. The COMAddin base class is not a blackbox. */ // This error handler is used for IExtensibility2 events (your code) and the COMAddin methods GetCustomUI, CTPFactoryAvailable and CreateFactory(also overwrites). // the first argument shows in which method the error is occured. The second argument is the detailed exception info. // Rethrow the exception otherwise the exception is marked as handled. protected override void OnError(ErrorMethodKind methodKind, Exception exception) { MessageBox.Show("An error occurend in " + methodKind.ToString(), "ExtendedAccessCS4.Addin"); }
public void GeneralErrorHandler(ErrorMethodKind methodKind, Exception exception) { MessageBox.Show("An error occurend in " + methodKind.ToString(), "COMAddinNetOfficeToolsExCS2.AccessSampleAddin"); }
/* * At last you see some options for troubleshooting. The COMAddin base class is not a blackbox. */ // This error handler is used for IExtensibility2 events (your code) and the COMAddin methods GetCustomUI, CTPFactoryAvailable and CreateFactory(also overwrites). // the first argument shows in which method the error is occured. The second argument is the detailed exception info. // Rethrow the exception otherwise the exception is marked as handled. protected override void OnError(ErrorMethodKind methodKind, Exception exception) { MessageBox.Show("An error occurend in " + methodKind.ToString(), "ExtendedPPointCS4.Addin"); }
/// <summary> /// Exception handler for unhandled exceptions /// </summary> /// <param name="methodKind">The method where the error occurred.</param> /// <param name="exception">The exception that occurred.</param> protected override void OnError(ErrorMethodKind methodKind, Exception exception) { Utils.Dialog.ShowError(exception, "Unexpected state in CDP4-CE.Addin " + methodKind.ToString()); }
protected override void OnError(ErrorMethodKind methodKind, Exception exception) { Utils.Dialog.ShowError(exception, "Unexpected state in SuperAddinCS4 " + methodKind.ToString()); }
public void GeneralErrorHandler(ErrorMethodKind methodKind, System.Exception exception) { MessageBox.Show("An error occurend in " + methodKind.ToString(), "ExtendedOutlookCS35.Addin"); }
protected override void OnError(ErrorMethodKind methodKind, System.Exception exception) { Trace.WriteLine("OnError " + methodKind.ToString() + " " + exception.Message); MessageBox.Show(exception.ToString(), methodKind.ToString()); }
public void GeneralErrorHandler(ErrorMethodKind methodKind, Exception exception) { MessageBox.Show("An error occurend in " + methodKind.ToString(), "ExtendedWordCS4.Addin"); }
/* * at last you see some options for troubleshooting. the COMAddin base class is not a blackbox. */ // This error handler is used for IExtensibility2 events (your code) and the COMAddin methods GetCustomUI, CTPFactoryAvailable and CreateFactory(also overwrites). // the first argument shows in which method the error is occured. The second argument is the detailed exception info. // Rethrow the exception otherwise the exception is marked as handled. protected override void OnError(ErrorMethodKind methodKind, System.Exception exception) { MessageBox.Show("An error occurend in " + methodKind.ToString(), "COMAddinNetOfficeToolsExCS4.AccessSampleAddin"); }
protected override void OnError(ErrorMethodKind methodKind, Exception exception) { if (null == GeneralError) GeneralError = ""; GeneralError += methodKind.ToString() + Environment.NewLine + exception.GetType().Name + Environment.NewLine + exception.Message; }
protected override void OnError(ErrorMethodKind methodKind, System.Exception exception) { MessageBox.Show("An error occurend in " + methodKind.ToString(), "Lightsaber"); }
protected override void OnError(ErrorMethodKind methodKind, Exception exception) { Trace.WriteLine("MyCustomTaskPaneConsumer OnError " + methodKind.ToString() + " " + exception.ToString()); MessageBox.Show("On Error " + methodKind.ToString() + " " + exception.Message); }