mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
refactor<Exception>: add context to exception to filter exceptions; each page has it's own error display control
This commit is contained in:
parent
c85052bbcc
commit
838e688a0c
15 changed files with 79 additions and 44 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue