示例#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);
            }
        }
示例#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);
 }