/// <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); } }
/// <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); }