Habanero.Faces.Win.FormExceptionNotifier.Notify C# (CSharp) Method

Notify() public method

Displays a dialog with exception information to the user
public Notify ( Exception ex, string furtherMessage, string title ) : void
ex System.Exception The exception
furtherMessage string Additional error messages
title string The title
return void
        public void Notify(Exception ex, string furtherMessage, string title)
        {
            //new ExceptionNotifyForm(ex, furtherMessage, title).ShowDialog();
            _exceptionMessage = furtherMessage + Environment.NewLine + ex.Message;
            if (ex is UserException)
            {
                string message = ex.Message;
                if (!String.IsNullOrEmpty(furtherMessage))
                {
                    furtherMessage = furtherMessage.TrimEnd('.', ':');
                    message = furtherMessage + ":" + Environment.NewLine + message;
                }
                MessageBox.Show(message, title, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                CollapsibleExceptionNotifyForm form = new CollapsibleExceptionNotifyForm(ex, furtherMessage, title);
                form.ShowDialog();
            }
        }
FormExceptionNotifier