mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 18:30:34 +08:00
refactor<Exception>: add context to exception to filter exceptions; each page has it's own error display control
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user