Moved api specific exceptions. Deleted plesk exception
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Moonlight.App.Exceptions;
|
||||
namespace Moonlight.App.ApiClients.Daemon;
|
||||
|
||||
[Serializable]
|
||||
public class DaemonException : Exception
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Moonlight.App.Exceptions;
|
||||
namespace Moonlight.App.ApiClients.Paper;
|
||||
|
||||
public class PaperException : Exception
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Moonlight.App.Exceptions;
|
||||
namespace Moonlight.App.ApiClients.Wings;
|
||||
|
||||
[Serializable]
|
||||
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 Logging.Net
|
||||
@using Moonlight.App.ApiClients.CloudPanel
|
||||
@using Moonlight.App.ApiClients.Wings
|
||||
@inherits ErrorBoundaryBase
|
||||
|
||||
@inject AlertService AlertService
|
||||
|
||||
Reference in New Issue
Block a user