protected override void OnError(ErrorMethodKind methodKind, Exception exception) { if (null == GeneralError) { GeneralError = ""; } GeneralError += methodKind.ToString() + Environment.NewLine + exception.GetType().Name + Environment.NewLine + exception.Message; }
/// <summary> /// redirect to errorhandler method if exists /// </summary> /// <param name="methodKind">origin method where the error comes from</param> /// <param name="exception">occured exception</param> private void RaiseErrorHandlerMethod(ErrorMethodKind methodKind, NetRunTimeSystem.Exception exception) { MethodInfo errorMethod = AttributeHelper.GetErrorMethod(this); if (null != errorMethod) { errorMethod.Invoke(this, new object[] { methodKind, exception }); } }
// this error handler is used for IExtensibility2 methods (your code) and the COMAddin methods GetCustomUI and CTPFactoryAvailable protected override void OnError(ErrorMethodKind methodKind, Exception exception) { }
/* * 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"); }
/* * 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 error occured in method {methodKind}."); }
/* * This method is called when something failed in the COMAddin base class */ protected override void OnError(ErrorMethodKind methodKind, Exception exception) { Utils.Dialog.ShowErrorDefault(methodKind, exception); }
/* * 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) { Utils.Dialog.ShowError(exception, "An error occured"); }
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) { Utils.Dialog.ShowError(exception, "An error occured"); }
// this error handler is used for IExtensibility2 methods (your code) and the COMAddin methods GetCustomUI and CTPFactoryAvailable protected override void OnError(ErrorMethodKind methodKind, Exception exception) { }
protected override void OnError(ErrorMethodKind methodKind, Exception exception) { Utils.Dialog.ShowError(exception, "Unexpected state in SuperAddinCS4 " + methodKind.ToString()); }
/// <summary> /// Custom error handler /// </summary> /// <param name="methodKind">origin method where the error comes from</param> /// <param name="exception">occured exception</param> protected virtual void OnError(ErrorMethodKind methodKind, Exception exception) { }
public void GeneralErrorHandler(ErrorMethodKind methodKind, System.Exception exception) { MessageBox.Show("An error occurend in " + methodKind.ToString(), "ExtendedOutlookCS35.Addin"); }
protected override void OnError(ErrorMethodKind methodKind, Exception exception) { if (null == GeneralError) GeneralError = ""; GeneralError += methodKind.ToString() + Environment.NewLine + exception.GetType().Name + Environment.NewLine + exception.Message; }
/// <summary> /// Custom error handler /// </summary> /// <param name="methodKind">origin method where the error comes from</param> /// <param name="exception">occured exception</param> protected virtual void OnError(ErrorMethodKind methodKind, NetRuntimeSystem.Exception exception) { }
/* * 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"); }
/* * At last you see some options for troubleshooting. The COMAddin base class is not a blackbox. */ // This error handler is used for IDTExtensibility2 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) { string friendlyErrorDescription = String.Format("Unexpected state in {0}.", methodKind); Utils.Dialog.ShowError(exception, friendlyErrorDescription); }
protected override void OnError(ErrorMethodKind methodKind, Exception exception) { Utils.Dialog.ShowError(exception, "Unexpected state in Twitter-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, Exception exception) { string friendlyErrorDescription = String.Format("Unexpected state in ExtendedExcelCS4.Addin {0}.", methodKind); Utils.Dialog.ShowError(exception, friendlyErrorDescription); }
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(), "COMAddinNetOfficeToolsExCS2.AccessSampleAddin"); }
protected override void OnError(ErrorMethodKind methodKind, Exception exception) { MessageBox.Show(methodKind + Environment.NewLine + exception.Message); }
protected override void OnError(ErrorMethodKind methodKind, Exception exception) { Utils.Dialog.ShowError(exception, "Unexpected state in Wikipedia-Addin"); }
public void GeneralErrorHandler(ErrorMethodKind methodKind, Exception exception) { MessageBox.Show("An error occurend in " + methodKind.ToString(), "ExtendedWordCS4.Addin"); }
/// <summary> /// Custom error handler /// </summary> /// <param name="methodKind">origin method where the error comes from</param> /// <param name="exception">occured exception</param> protected virtual void OnError(ErrorMethodKind methodKind, NetRuntimeSystem.Exception exception) { }
protected override void OnError(ErrorMethodKind methodKind, Exception exception) { Trace.WriteLine("MyCustomTaskPaneConsumer OnError " + methodKind.ToString() + " " + exception.ToString()); MessageBox.Show("On Error " + methodKind.ToString() + " " + exception.Message); }