mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Move namespace
This commit is contained in:
@@ -5,7 +5,7 @@ using System.Text;
|
||||
using System.Xml;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace Wox.Core.Exception
|
||||
namespace Wox.Infrastructure.Exception
|
||||
{
|
||||
public class ExceptionFormatter
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Wox.Core.Exception
|
||||
namespace Wox.Infrastructure.Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Base Wox Exceptions
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Wox.Core.Exception
|
||||
namespace Wox.Infrastructure.Exception
|
||||
{
|
||||
public class WoxHttpException :WoxException
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Wox.Core.Exception
|
||||
namespace Wox.Infrastructure.Exception
|
||||
{
|
||||
public class WoxJsonRPCException : WoxException
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Wox.Core.Exception
|
||||
namespace Wox.Infrastructure.Exception
|
||||
{
|
||||
public class WoxPluginException : WoxException
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace Wox.Infrastructure.Storage
|
||||
{
|
||||
serializedObject = JsonConvert.DeserializeObject<T>(json);
|
||||
}
|
||||
catch (Exception)
|
||||
catch (System.Exception)
|
||||
{
|
||||
serializedObject = LoadDefault();
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user