mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
Better logger
1. Throw exception for fatal/error log when debugging 2. Write to debug output for warn/debug/info log when debugging 3. part of #355
This commit is contained in:
13
Wox.Infrastructure/Exception/WoxPluginException.cs
Normal file
13
Wox.Infrastructure/Exception/WoxPluginException.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Wox.Core.Exception
|
||||
{
|
||||
public class WoxPluginException : WoxException
|
||||
{
|
||||
public string PluginName { get; set; }
|
||||
|
||||
public WoxPluginException(string pluginName, string msg, System.Exception e)
|
||||
: base($"{msg}: {pluginName}", e)
|
||||
{
|
||||
PluginName = pluginName;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user