using System; namespace SourceGit.Models { /// /// 错误通知 /// public static class Exception { public static Action Handler { get; set; } public static void Raise(string error) { Handler?.Invoke(error); } } }