mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
16 lines
306 B
C#
16 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);
|
|
}
|
|
}
|
|
}
|