Moved api specific exceptions. Deleted plesk exception
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace Moonlight.App.Exceptions;
|
namespace Moonlight.App.ApiClients.Daemon;
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class DaemonException : Exception
|
public class DaemonException : Exception
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace Moonlight.App.Exceptions;
|
namespace Moonlight.App.ApiClients.Paper;
|
||||||
|
|
||||||
public class PaperException : Exception
|
public class PaperException : Exception
|
||||||
{
|
{
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace Moonlight.App.Exceptions;
|
namespace Moonlight.App.ApiClients.Wings;
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class WingsException : Exception
|
public class WingsException : Exception
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
using System.Runtime.Serialization;
|
|
||||||
|
|
||||||
namespace Moonlight.App.Exceptions;
|
|
||||||
|
|
||||||
[Serializable]
|
|
||||||
public class PleskException : Exception
|
|
||||||
{
|
|
||||||
public int StatusCode { get; set; }
|
|
||||||
|
|
||||||
public PleskException()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public PleskException(string message, int statusCode) : base(message)
|
|
||||||
{
|
|
||||||
StatusCode = statusCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public PleskException(string message) : base(message)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public PleskException(string message, Exception inner) : base(message, inner)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
protected PleskException(
|
|
||||||
SerializationInfo info,
|
|
||||||
StreamingContext context) : base(info, context)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
@using Moonlight.App.Services
|
@using Moonlight.App.Services
|
||||||
@using Logging.Net
|
@using Logging.Net
|
||||||
@using Moonlight.App.ApiClients.CloudPanel
|
@using Moonlight.App.ApiClients.CloudPanel
|
||||||
|
@using Moonlight.App.ApiClients.Wings
|
||||||
@inherits ErrorBoundaryBase
|
@inherits ErrorBoundaryBase
|
||||||
|
|
||||||
@inject AlertService AlertService
|
@inject AlertService AlertService
|
||||||
|
|||||||
Reference in New Issue
Block a user