Move namespace

This commit is contained in:
bao-qian
2015-11-09 01:32:33 +00:00
parent 60f06f97fa
commit da5a930e89
21 changed files with 30 additions and 33 deletions

View File

@@ -5,7 +5,7 @@ using System.Text;
using System.Xml;
using Microsoft.Win32;
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
public class ExceptionFormatter
{

View File

@@ -1,4 +1,4 @@
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
/// <summary>
/// Base Wox Exceptions

View File

@@ -1,4 +1,4 @@
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
/// <summary>
/// Represent exceptions that wox can't handle and MUST close running Wox.

View File

@@ -1,4 +1,4 @@
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
public class WoxHttpException :WoxException
{

View File

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

View File

@@ -1,4 +1,4 @@
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
public class WoxJsonRPCException : WoxException
{

View File

@@ -1,4 +1,4 @@
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
public class WoxPluginException : WoxException
{

View File

@@ -1,5 +1,4 @@
using System;
using System.IO;
using System.IO;
using System.Net;
using System.Text;
using Wox.Plugin;
@@ -55,7 +54,7 @@ namespace Wox.Infrastructure.Http
}
}
}
catch (Exception e)
catch (System.Exception e)
{
Logger.Log.Error(e);
return string.Empty;
@@ -108,7 +107,7 @@ namespace Wox.Infrastructure.Http
}
}
}
catch (Exception e)
catch (System.Exception e)
{
Logger.Log.Error(e);
return string.Empty;

View File

@@ -1,6 +1,4 @@
using System;
using NLog;
using Wox.Core.Exception;
using NLog;
namespace Wox.Infrastructure.Logger
{
@@ -8,7 +6,7 @@ namespace Wox.Infrastructure.Logger
{
private static NLog.Logger logger = LogManager.GetCurrentClassLogger();
public static void Error(Exception e)
public static void Error(System.Exception e)
{
#if DEBUG
throw e;
@@ -35,7 +33,7 @@ namespace Wox.Infrastructure.Logger
logger.Warn(msg);
}
public static void Fatal(Exception e)
public static void Fatal(System.Exception e)
{
#if DEBUG
throw e;

View File

@@ -42,7 +42,7 @@ namespace Wox.Infrastructure.Storage
serializedObject = LoadDefault();
#if (DEBUG)
{
throw new Exception("deserialize failed");
throw new System.Exception("deserialize failed");
}
#endif
}
@@ -53,7 +53,7 @@ namespace Wox.Infrastructure.Storage
}
}
}
catch (Exception e)
catch (System.Exception e)
{
Log.Error(e);
serializedObject = LoadDefault();
@@ -101,7 +101,7 @@ namespace Wox.Infrastructure.Storage
binaryFormatter.Serialize(fileStream, serializedObject);
fileStream.Close();
}
catch (Exception e)
catch (System.Exception e)
{
Log.Error(e);
#if (DEBUG)

View File

@@ -25,7 +25,7 @@ namespace Wox.Infrastructure.Storage
{
serializedObject = JsonConvert.DeserializeObject<T>(json);
}
catch (Exception)
catch (System.Exception)
{
serializedObject = LoadDefault();
}

View File

@@ -115,7 +115,7 @@ namespace Wox.Infrastructure
needsCommandLine = peHeaderReader.OptionalHeader64.Subsystem == 3;
}
catch (Exception)
catch (System.Exception)
{
// Error reading the headers. We will try to run the command the standard way.
needsCommandLine = false;
@@ -149,7 +149,7 @@ namespace Wox.Infrastructure
{
global::System.Diagnostics.Process.Start(startInfo);
}
catch (Exception e)
catch (System.Exception e)
{
if (!startInfo.ErrorDialog)
throw e;