PowerToys/Wox.Infrastructure/Exception/WoxPluginException.cs
bao-qian 705354a3d6 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
2015-11-07 17:32:58 +00:00

14 lines
335 B
C#

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;
}
}
}