Example #1
0
 protected override void OnError(ErrorMethodKind methodKind, Exception exception)
 {
     if (null == GeneralError)
     {
         GeneralError = "";
     }
     GeneralError += methodKind.ToString() + Environment.NewLine + exception.GetType().Name + Environment.NewLine + exception.Message;
 }
Example #2
0
        /*
         * 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");
        }
Example #3
0
 public void GeneralErrorHandler(ErrorMethodKind methodKind, Exception exception)
 {
     MessageBox.Show("An error occurend in " + methodKind.ToString(), "COMAddinNetOfficeToolsExCS2.AccessSampleAddin");
 }
Example #4
0
        /*
         * 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");
        }
Example #5
0
 /// <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());
 }
Example #6
0
 protected override void OnError(ErrorMethodKind methodKind, Exception exception)
 {
     Utils.Dialog.ShowError(exception, "Unexpected state in SuperAddinCS4 " + methodKind.ToString());
 }
Example #7
0
 public void GeneralErrorHandler(ErrorMethodKind methodKind, System.Exception exception)
 {
     MessageBox.Show("An error occurend in " + methodKind.ToString(), "ExtendedOutlookCS35.Addin");
 }
Example #8
0
 protected override void OnError(ErrorMethodKind methodKind, System.Exception exception)
 {
     Trace.WriteLine("OnError " + methodKind.ToString() + " " + exception.Message);
     MessageBox.Show(exception.ToString(), methodKind.ToString());
 }
Example #9
0
 public void GeneralErrorHandler(ErrorMethodKind methodKind, Exception exception)
 {
     MessageBox.Show("An error occurend in " + methodKind.ToString(), "ExtendedWordCS4.Addin");
 }
Example #10
0
        /*
         * 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");
        }
Example #11
0
 protected override void OnError(ErrorMethodKind methodKind, Exception exception)
 {
     if (null == GeneralError)
         GeneralError = "";
     GeneralError += methodKind.ToString() + Environment.NewLine + exception.GetType().Name + Environment.NewLine + exception.Message;
 }
Example #12
0
        /*
         * 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");
        }
Example #13
0
 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);
 }