Moved api specific exceptions. Deleted plesk exception

This commit is contained in:
Marcel Baumgartner
2023-05-05 04:53:36 +02:00
parent 62d700c3cf
commit 82005a62fb
5 changed files with 4 additions and 35 deletions

View File

@@ -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

View File

@@ -1,4 +1,4 @@
namespace Moonlight.App.Exceptions; namespace Moonlight.App.ApiClients.Paper;
public class PaperException : Exception public class PaperException : Exception
{ {

View File

@@ -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

View File

@@ -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)
{
}
}

View File

@@ -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