sourcegit/src/Models/Exception.cs
2021-04-29 20:05:55 +08:00

15 lines
306 B
C#

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