Exemplo n.º 1
0
        /// <summary>
        /// Displays a message
        /// with the specified
        /// type in the associated GUI tab.
        /// </summary>
        public virtual void AddMessage(Exception exception, [CallerMemberName] string caller = "")
        {
            SwitcherException se = exception as SwitcherException;

            if (se == default)
            {
                AddMessage(exception.Message, TaskErrorCategory.Error, caller);
            }
            else
            {
                AddMessage(se);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Displays a message
 /// with the specified
 /// type in the associated GUI tab.
 /// </summary>
 public virtual void AddMessage(SwitcherException exception, [CallerMemberName] string caller = "")
 {
     AddMessage(exception.MsbProject.FullPath, exception.Message, TaskErrorCategory.Error, caller);
 }