remove custom exception

This commit is contained in:
bao-qian
2017-01-30 00:26:11 +00:00
parent 052048ad4c
commit 974efc55ac
12 changed files with 62 additions and 121 deletions

View File

@@ -1,19 +0,0 @@
namespace Wox.Infrastructure.Exception
{
/// <summary>
/// Base Wox Exceptions
/// </summary>
public class WoxException : System.Exception
{
public WoxException(string msg)
: base(msg)
{
}
public WoxException(string msg, System.Exception innerException)
: base(msg, innerException)
{
}
}
}

View File

@@ -1,12 +0,0 @@
namespace Wox.Infrastructure.Exception
{
/// <summary>
/// Represent exceptions that wox can't handle and MUST close running Wox.
/// </summary>
public class WoxFatalException : WoxException
{
public WoxFatalException(string msg) : base(msg)
{
}
}
}

View File

@@ -1,9 +0,0 @@
namespace Wox.Infrastructure.Exception
{
public class WoxHttpException :WoxException
{
public WoxHttpException(string msg) : base(msg)
{
}
}
}

View File

@@ -1,9 +0,0 @@
namespace Wox.Infrastructure.Exception
{
public class WoxI18nException : WoxException
{
public WoxI18nException(string msg) : base(msg)
{
}
}
}

View File

@@ -1,10 +0,0 @@
namespace Wox.Infrastructure.Exception
{
public class WoxJsonRPCException : WoxException
{
public WoxJsonRPCException(string msg)
: base(msg)
{
}
}
}

View File

@@ -1,18 +0,0 @@
namespace Wox.Infrastructure.Exception
{
public class WoxPluginException : WoxException
{
public string PluginName { get; set; }
public WoxPluginException(string pluginName, string msg, System.Exception e)
: base($"{pluginName} : {msg}", e)
{
PluginName = pluginName;
}
public WoxPluginException(string pluginName, string msg) : base(msg)
{
PluginName = pluginName;
}
}
}