mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
15 lines
306 B
C#
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);
|
|
}
|
|
}
|
|
}
|