mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Refactoring. Move plugin related work to Wox.Core
This commit is contained in:
17
Wox.Core/Exception/WoxCritialException.cs
Normal file
17
Wox.Core/Exception/WoxCritialException.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Wox.Core.Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Represent exceptions that wox can't handle and MUST close running Wox.
|
||||
/// </summary>
|
||||
public class WoxCritialException : WoxException
|
||||
{
|
||||
public WoxCritialException(string msg) : base(msg)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
14
Wox.Core/Exception/WoxException.cs
Normal file
14
Wox.Core/Exception/WoxException.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Wox.Core.Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Base Wox Exceptions
|
||||
/// </summary>
|
||||
public class WoxException : System.Exception
|
||||
{
|
||||
public WoxException(string msg)
|
||||
: base(msg)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
9
Wox.Core/Exception/WoxHttpException.cs
Normal file
9
Wox.Core/Exception/WoxHttpException.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Wox.Core.Exception
|
||||
{
|
||||
public class WoxHttpException :WoxException
|
||||
{
|
||||
public WoxHttpException(string msg) : base(msg)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
10
Wox.Core/Exception/WoxJsonRPCException.cs
Normal file
10
Wox.Core/Exception/WoxJsonRPCException.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace Wox.Core.Exception
|
||||
{
|
||||
public class WoxJsonRPCException : WoxException
|
||||
{
|
||||
public WoxJsonRPCException(string msg)
|
||||
: base(msg)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user