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
        /// <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 });
            }
        }
Example #3
0
 // 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)
 {
     
 }
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(), "ExtendedAccessCS4.Addin");
        }
Example #5
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 #6
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 #7
0
 protected override void OnError(ErrorMethodKind methodKind, Exception exception)
 {
     Utils.Dialog.ShowError(exception, $"Unexpected error occured in method {methodKind}.");
 }
Example #8
0
 /*
  *  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);
 }
Example #9
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 #10
0
 protected override void OnError(ErrorMethodKind methodKind, Exception exception)
 {
     Utils.Dialog.ShowError(exception, "An error occured");
 }
Example #11
0
 protected override void OnError(ErrorMethodKind methodKind, System.Exception exception)
 {
     MessageBox.Show("An error occurend in " + methodKind.ToString(), "Lightsaber");
 }
Example #12
0
 protected override void OnError(ErrorMethodKind methodKind, Exception exception)
 {
     Utils.Dialog.ShowError(exception, "An error occured");
 }
Example #13
0
 // 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)
 {
 }
Example #14
0
 protected override void OnError(ErrorMethodKind methodKind, Exception exception)
 {
     Utils.Dialog.ShowError(exception, "Unexpected state in SuperAddinCS4 " + methodKind.ToString());
 }
Example #15
0
 /// <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)
 {
 }
Example #16
0
 public void GeneralErrorHandler(ErrorMethodKind methodKind, System.Exception exception)
 {
     MessageBox.Show("An error occurend in " + methodKind.ToString(), "ExtendedOutlookCS35.Addin");
 }
Example #17
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 #18
0
        /// <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)
        {

        }
Example #19
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 #20
0
        /*
         * 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);
        }
Example #21
0
 protected override void OnError(ErrorMethodKind methodKind, Exception exception)
 {
     Utils.Dialog.ShowError(exception, "Unexpected state in Twitter-Addin");
 }
Example #22
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)
        {
            string friendlyErrorDescription = String.Format("Unexpected state in ExtendedExcelCS4.Addin {0}.", methodKind);
            Utils.Dialog.ShowError(exception, friendlyErrorDescription);
        }
Example #23
0
 protected override void OnError(ErrorMethodKind methodKind, System.Exception exception)
 {
     Trace.WriteLine("OnError " + methodKind.ToString() + " " + exception.Message);
     MessageBox.Show(exception.ToString(), methodKind.ToString());
 }
Example #24
0
 public void GeneralErrorHandler(ErrorMethodKind methodKind, Exception exception)
 {
     MessageBox.Show("An error occurend in " + methodKind.ToString(), "COMAddinNetOfficeToolsExCS2.AccessSampleAddin");
 }
Example #25
0
 protected override void OnError(ErrorMethodKind methodKind, Exception exception)
 {
     MessageBox.Show(methodKind + Environment.NewLine + exception.Message);
 }
Example #26
0
 protected override void OnError(ErrorMethodKind methodKind, Exception exception)
 {
     Utils.Dialog.ShowError(exception, "Unexpected state in Wikipedia-Addin");
 }
Example #27
0
 public void GeneralErrorHandler(ErrorMethodKind methodKind, Exception exception)
 {
     MessageBox.Show("An error occurend in " + methodKind.ToString(), "ExtendedWordCS4.Addin");
 }
Example #28
0
 /// <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);
 }